From 23ca8a2633c38bca2a2fd4d0c0f8523a2f266d65 Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 20 Mar 2017 20:28:02 -0700 Subject: [PATCH] cmd/stringer: tweak "Code generated by" comment to match new standard See https://golang.org/issue/13560 for the full discussion. The actual change is just the addition of a final period. Update golang/go#13560 Change-Id: Icc2f52b67181de344aa5107f94faa0e739ff993c Reviewed-on: https://go-review.googlesource.com/38415 Reviewed-by: Ian Lance Taylor --- cmd/stringer/stringer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/stringer/stringer.go b/cmd/stringer/stringer.go index 5d367757..78d7299b 100644 --- a/cmd/stringer/stringer.go +++ b/cmd/stringer/stringer.go @@ -126,7 +126,7 @@ func main() { } // Print the header and package clause. - g.Printf("// Code generated by \"stringer %s\"; DO NOT EDIT\n", strings.Join(os.Args[1:], " ")) + g.Printf("// Code generated by \"stringer %s\"; DO NOT EDIT.\n", strings.Join(os.Args[1:], " ")) g.Printf("\n") g.Printf("package %s", g.pkg.name) g.Printf("\n")