From e54065c9890f7b9190f3b8ab55de3427cb851fd9 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Sat, 14 Mar 2020 13:16:00 +0300 Subject: [PATCH] Fix variable name --- cmd/sgblog/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/sgblog/main.go b/cmd/sgblog/main.go index df9e075..2db6dbe 100644 --- a/cmd/sgblog/main.go +++ b/cmd/sgblog/main.go @@ -352,12 +352,12 @@ func main() { if err != nil { makeErr(err) } - commentN := 0 + commitN := 0 for i := 0; i < offset; i++ { if _, err = repoLog.Next(); err != nil { break } - commentN++ + commitN++ } entries := make([]TableEntry, 0, PageEntries) @@ -390,7 +390,7 @@ func main() { `C` + "Linked to\n") for _, entry := range entries { - commentN++ + commitN++ lines := msgSplit(entry.commit.Message) domains := []string{} for _, line := range lines[2:] { @@ -411,7 +411,7 @@ func main() { "%s"+ "%d%s"+ "%s\n", - commentN, entry.commit.Author.When.Format(sgblog.WhenFmt), + commitN, entry.commit.Author.When.Format(sgblog.WhenFmt), makeA(cfg.URLPrefix+"/"+entry.commit.Hash.String(), lines[0]), len(lines)-2, commentsValue, -- 2.44.0