diff --git a/cmd/gh-md-toc/main.go b/cmd/gh-md-toc/main.go index e453b38..200e206 100644 --- a/cmd/gh-md-toc/main.go +++ b/cmd/gh-md-toc/main.go @@ -64,7 +64,7 @@ func main() { for i := 1; i <= pathsCount; i++ { toc := <-ch - // #14, check if there's realy TOC? + // #14, check if there's really TOC? if toc != nil { toc.Print() } diff --git a/ghdoc.go b/ghdoc.go index 4959e54..8a59a2f 100644 --- a/ghdoc.go +++ b/ghdoc.go @@ -14,7 +14,7 @@ import ( // GHToc GitHub TOC type GHToc []string -// Print print TOC to the console +// Print TOC to the console func (toc *GHToc) Print() { for _, tocItem := range *toc { fmt.Println(tocItem) @@ -144,7 +144,7 @@ func (doc *GHDoc) GrabToc() *GHToc { var tmpSection string doc.d("GrabToc: processing groups ...") - doc.d("Including starting frome level " + strconv.Itoa(doc.StartDepth)) + doc.d("Including starting from level " + strconv.Itoa(doc.StartDepth)) for _, group := range groups { // format result n, _ := strconv.Atoi(group["num"])