]> Cypherpunks.ru repositories - gostls13.git/commitdiff
all: fix non-standard "DO NOT EDIT" comments for generated files
authorMark Rushakoff <mark.rushakoff@gmail.com>
Sat, 10 Mar 2018 05:57:43 +0000 (05:57 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sat, 10 Mar 2018 17:50:11 +0000 (17:50 +0000)
I found files to change with this command:

    git grep 'DO NOT EDIT' | grep -v 'Code generated .* DO NOT'

There are more files that match that grep, but I do not intend on fixing
them.

Change-Id: I4b474f1c29ca3135560d414785b0dbe0d1a4e52c
GitHub-Last-Rev: 65804b02634abd85bf113788b38354d48801241f
GitHub-Pull-Request: golang/go#24334
Reviewed-on: https://go-review.googlesource.com/99955
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

14 files changed:
src/crypto/md5/gen.go
src/crypto/md5/md5block.go
src/encoding/gob/dec_helpers.go
src/encoding/gob/decgen.go
src/encoding/gob/enc_helpers.go
src/encoding/gob/encgen.go
src/image/color/palette/gen.go
src/image/color/palette/palette.go
src/image/internal/imageutil/gen.go
src/image/internal/imageutil/impl.go
src/sort/genzfunc.go
src/sort/zfuncversion.go
src/strconv/isprint.go
src/strconv/makeisprint.go

index 178fad18285730cea71a658458cd56c9a55259f7..a815dc29f6ab7b8b44c5bad316a6367b9ff9faa8 100644 (file)
@@ -179,8 +179,7 @@ var program = `// Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// DO NOT EDIT.
-// Generate with: go run gen.go{{if .Full}} -full{{end}} -output md5block.go
+// Code generated by go run gen.go{{if .Full}} -full{{end}} -output md5block.go; DO NOT EDIT.
 
 package md5
 
index 64e1e7c1efdb15e8c06dce73f87f1cedaccea99e..8ac32ffeb78a716eaf6a470eee37d914645a0b30 100644 (file)
@@ -2,8 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// DO NOT EDIT.
-// Generate with: go run gen.go -full -output md5block.go
+// Code generated by go run gen.go -full -output md5block.go; DO NOT EDIT.
 
 package md5
 
index 3aa038da75eb8ce9a3fafe18d7f622fac7df6ca7..26eb9e4cd1c41704af11935fb751af08650f8e45 100644 (file)
@@ -1,4 +1,4 @@
-// Created by decgen --output dec_helpers.go; DO NOT EDIT
+// Code generated by go run decgen.go -output dec_helpers.go; DO NOT EDIT.
 
 // Copyright 2014 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index ef73f2dc4a012c410a01b16781ac9a833bf59fae..bad4fe5d92605e552be9af6de6bba6c58ce62273 100644 (file)
@@ -171,7 +171,7 @@ func main() {
                log.Fatal("usage: decgen [--output filename]")
        }
        var b bytes.Buffer
-       fmt.Fprintf(&b, "// Created by decgen --output %s; DO NOT EDIT\n", *output)
+       fmt.Fprintf(&b, "// Code generated by go run decgen.go -output %s; DO NOT EDIT.\n", *output)
        fmt.Fprint(&b, header)
        printMaps(&b, "Array")
        fmt.Fprint(&b, "\n")
index 804e539d84d386f5b7d3854c8c7eee2954977950..c3b4ca8972a68630c1c53d053b10f25e6dcbb3a4 100644 (file)
@@ -1,4 +1,4 @@
-// Created by encgen --output enc_helpers.go; DO NOT EDIT
+// Code generated by go run encgen.go -output enc_helpers.go; DO NOT EDIT.
 
 // Copyright 2014 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index efdd9282921da612c2d43afc45bb79f0742fcc42..0c051d2e844e66c58f594f148011fe66c53fa13d 100644 (file)
@@ -150,7 +150,7 @@ func main() {
                log.Fatal("usage: encgen [--output filename]")
        }
        var b bytes.Buffer
-       fmt.Fprintf(&b, "// Created by encgen --output %s; DO NOT EDIT\n", *output)
+       fmt.Fprintf(&b, "// Code generated by go run encgen.go -output %s; DO NOT EDIT.\n", *output)
        fmt.Fprint(&b, header)
        printMaps(&b, "Array")
        fmt.Fprint(&b, "\n")
index 57718e6a0c5b8956f2a0c389e4e89ba6fb148790..d55e2d285a1434db10d1838e97d3a23a63a0988a 100644 (file)
@@ -30,7 +30,7 @@ func main() {
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.`)
        fmt.Fprintln(&buf)
-       fmt.Fprintln(&buf, "// generated by go run gen.go -output palette.go; DO NOT EDIT")
+       fmt.Fprintln(&buf, "// Code generated by go run gen.go -output palette.go; DO NOT EDIT.")
        fmt.Fprintln(&buf)
        fmt.Fprintln(&buf, "package palette")
        fmt.Fprintln(&buf)
index b69541452041c48a95aecbf64f6597db901ac6a7..07d60d2fb0757bdcd8d6c1b5aef36f2b5d802523 100644 (file)
@@ -2,7 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// generated by go run gen.go -output palette.go; DO NOT EDIT
+// Code generated by go run gen.go -output palette.go; DO NOT EDIT.
 
 package palette
 
index 8b2c42703a7e0bf0882c172b2dac722b739d34c4..bc85c512f9c7a421a6dacb63059e69436e11a576 100644 (file)
@@ -41,7 +41,7 @@ func main() {
        }
 }
 
-const pre = `// generated by "go run gen.go". DO NOT EDIT.
+const pre = `// Code generated by go run gen.go; DO NOT EDIT.
 
 package imageutil
 
index cfd5047879a9dc828f84f84b351ded2f6db6c3ba..4581dd8c5cd32c1b22236ba6784f1d81f02cf27e 100644 (file)
@@ -1,4 +1,4 @@
-// generated by "go run gen.go". DO NOT EDIT.
+// Code generated by go run gen.go; DO NOT EDIT.
 
 package imageutil
 
index 3bb7691f6a87f1dcace0167a08a099cc355410c5..66408d26c6c4faa03b7ea41820c8ef019fcb16ec 100644 (file)
@@ -82,7 +82,7 @@ func main() {
        }
 
        out.Reset()
-       out.WriteString(`// DO NOT EDIT; AUTO-GENERATED from sort.go using genzfunc.go
+       out.WriteString(`// Code generated from sort.go using genzfunc.go; DO NOT EDIT.
 
 // Copyright 2016 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 99c95a22c1ff792249e265920947f5dd1bec7ea4..30067cbe077bd0e1c8b570cc5c71450fae3ce16c 100644 (file)
@@ -1,4 +1,4 @@
-// DO NOT EDIT; AUTO-GENERATED from sort.go using genzfunc.go
+// Code generated from sort.go using genzfunc.go; DO NOT EDIT.
 
 // Copyright 2016 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
index 583714220115950dfbc9987fb9319ed7b556356c..f537ba4f4a3dff19c66463d8d4af50a5ef2e771d 100644 (file)
@@ -2,8 +2,7 @@
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.
 
-// DO NOT EDIT.  GENERATED BY
-//     go run makeisprint.go -output isprint.go
+// Code generated by go run makeisprint.go -output isprint.go; DO NOT EDIT.
 
 package strconv
 
index 0a3e5b20cce3e970731097dc3d810520b00532ce..1a3248f30854e771820ba336f5c367e3710e36be 100644 (file)
@@ -139,8 +139,7 @@ func main() {
        fmt.Fprintf(&buf, `// Copyright 2013 The Go Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style
 // license that can be found in the LICENSE file.`+"\n\n")
-       fmt.Fprintf(&buf, "// DO NOT EDIT.  GENERATED BY\n")
-       fmt.Fprintf(&buf, "//     go run makeisprint.go -output isprint.go\n\n")
+       fmt.Fprintf(&buf, "// Code generated by go run makeisprint.go -output isprint.go; DO NOT EDIT.\n\n")
        fmt.Fprintf(&buf, "package strconv\n\n")
 
        fmt.Fprintf(&buf, "// (%d+%d+%d)*2 + (%d)*4 = %d bytes\n\n",