From 38102fbc3a18b16c1a403863c852da3f26e85bc8 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Fri, 14 Jun 2019 00:09:13 +0200 Subject: [PATCH] Nicer comments --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 02ef658..a18a09c 100644 --- a/main.go +++ b/main.go @@ -78,7 +78,7 @@ func main() { // Add our own credits tpldata.Credits += "\n" + HTMLrocCredits - // Rules are after TOC + // Rules are after TOC, so find end of TOC tocend := strings.Index(filestr, "\n\n") if tocend < 0 { fmt.Fprintln(os.Stderr, "could not find end of TOC") @@ -88,7 +88,7 @@ func main() { // Strip TOC out filestr = filestr[tocend+2:] - // Every rule is a line (pretty handy!) + // Every rule is almost always a line (pretty handy!) lines := strings.Split(filestr, "\n") var currentSection *TemplateSection for _, line := range lines { @@ -131,7 +131,6 @@ func main() { // It's a new rule case isRule: - // ID is between ()s endID := strings.IndexRune(trimmed, ')') if endID < 0 {