From 620ecdb8d7943e20dc030b61bfe898d1b000bdea Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Fri, 31 Mar 2017 18:20:38 -0700 Subject: [PATCH] all: apply new machine-generated doc spec to files Updates golang/go#13560. Change-Id: I1664807a065c7982a57d4dc9cee22ce261536c5b Reviewed-on: https://go-review.googlesource.com/39202 Reviewed-by: Brad Fitzpatrick --- cmd/bundle/main.go | 2 +- cmd/bundle/testdata/out.golden | 2 +- godoc/static/makestatic.go | 2 +- godoc/static/static.go | 2 +- imports/mkstdlib.go | 2 +- imports/zstdlib.go | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/bundle/main.go b/cmd/bundle/main.go index d1f5348eba..e4b261faab 100644 --- a/cmd/bundle/main.go +++ b/cmd/bundle/main.go @@ -236,7 +236,7 @@ func bundle(src, dst, dstpkg, prefix string) ([]byte, error) { var out bytes.Buffer - fmt.Fprintf(&out, "// Code generated by golang.org/x/tools/cmd/bundle.\n") + fmt.Fprintf(&out, "// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT.\n") if *outputFile != "" { fmt.Fprintf(&out, "//go:generate bundle %s\n", strings.Join(os.Args[1:], " ")) } else { diff --git a/cmd/bundle/testdata/out.golden b/cmd/bundle/testdata/out.golden index 0ca96c9d59..9374b2e9f7 100644 --- a/cmd/bundle/testdata/out.golden +++ b/cmd/bundle/testdata/out.golden @@ -1,4 +1,4 @@ -// Code generated by golang.org/x/tools/cmd/bundle. +// Code generated by golang.org/x/tools/cmd/bundle. DO NOT EDIT. // $ bundle // The package doc comment diff --git a/godoc/static/makestatic.go b/godoc/static/makestatic.go index 9cc69e389e..8ee8e55658 100644 --- a/godoc/static/makestatic.go +++ b/godoc/static/makestatic.go @@ -120,7 +120,7 @@ func sanitize(b []byte) []byte { return bytes.Replace(b, []byte("\xEF\xBB\xBF"), []byte("`+\"\\xEF\\xBB\\xBF\"+`"), -1) } -const warning = `// Code generated by "makestatic"; DO NOT EDIT` +const warning = `// Code generated by "makestatic"; DO NOT EDIT.` var license = fmt.Sprintf(`// Copyright %d The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style diff --git a/godoc/static/static.go b/godoc/static/static.go index a42866098b..c89ffaadfe 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// Code generated by "makestatic"; DO NOT EDIT +// Code generated by "makestatic"; DO NOT EDIT. package static diff --git a/imports/mkstdlib.go b/imports/mkstdlib.go index 9f62662910..5602244a7e 100644 --- a/imports/mkstdlib.go +++ b/imports/mkstdlib.go @@ -40,7 +40,7 @@ func main() { outf := func(format string, args ...interface{}) { fmt.Fprintf(&buf, format, args...) } - outf("// AUTO-GENERATED BY mkstdlib.go\n\n") + outf("// Code generated by mkstdlib.go. DO NOT EDIT.\n\n") outf("package imports\n") outf("var stdlib = map[string]string{\n") f := io.MultiReader( diff --git a/imports/zstdlib.go b/imports/zstdlib.go index b1a2114ef3..5b66a6cd42 100644 --- a/imports/zstdlib.go +++ b/imports/zstdlib.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED BY mkstdlib.go +// Code generated by mkstdlib.go. DO NOT EDIT. package imports