Commit 5e524717 authored by Mark Rushakoff's avatar Mark Rushakoff Committed by Brad Fitzpatrick

all: fix non-standard "DO NOT EDIT" comments for generated files

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/99955Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent 5c432fe0
...@@ -179,8 +179,7 @@ var program = `// Copyright 2013 The Go Authors. All rights reserved. ...@@ -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 // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// DO NOT EDIT. // Code generated by go run gen.go{{if .Full}} -full{{end}} -output md5block.go; DO NOT EDIT.
// Generate with: go run gen.go{{if .Full}} -full{{end}} -output md5block.go
package md5 package md5
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// DO NOT EDIT. // Code generated by go run gen.go -full -output md5block.go; DO NOT EDIT.
// Generate with: go run gen.go -full -output md5block.go
package md5 package md5
......
// 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. // Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
......
...@@ -171,7 +171,7 @@ func main() { ...@@ -171,7 +171,7 @@ func main() {
log.Fatal("usage: decgen [--output filename]") log.Fatal("usage: decgen [--output filename]")
} }
var b bytes.Buffer 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) fmt.Fprint(&b, header)
printMaps(&b, "Array") printMaps(&b, "Array")
fmt.Fprint(&b, "\n") fmt.Fprint(&b, "\n")
......
// 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. // Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
......
...@@ -150,7 +150,7 @@ func main() { ...@@ -150,7 +150,7 @@ func main() {
log.Fatal("usage: encgen [--output filename]") log.Fatal("usage: encgen [--output filename]")
} }
var b bytes.Buffer 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) fmt.Fprint(&b, header)
printMaps(&b, "Array") printMaps(&b, "Array")
fmt.Fprint(&b, "\n") fmt.Fprint(&b, "\n")
......
...@@ -30,7 +30,7 @@ func main() { ...@@ -30,7 +30,7 @@ func main() {
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.`) // license that can be found in the LICENSE file.`)
fmt.Fprintln(&buf) 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)
fmt.Fprintln(&buf, "package palette") fmt.Fprintln(&buf, "package palette")
fmt.Fprintln(&buf) fmt.Fprintln(&buf)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // 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 package palette
......
...@@ -41,7 +41,7 @@ func main() { ...@@ -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 package imageutil
......
// generated by "go run gen.go". DO NOT EDIT. // Code generated by go run gen.go; DO NOT EDIT.
package imageutil package imageutil
......
...@@ -82,7 +82,7 @@ func main() { ...@@ -82,7 +82,7 @@ func main() {
} }
out.Reset() 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. // Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
......
// 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. // Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
......
...@@ -2,8 +2,7 @@ ...@@ -2,8 +2,7 @@
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file. // license that can be found in the LICENSE file.
// DO NOT EDIT. GENERATED BY // Code generated by go run makeisprint.go -output isprint.go; DO NOT EDIT.
// go run makeisprint.go -output isprint.go
package strconv package strconv
......
...@@ -139,8 +139,7 @@ func main() { ...@@ -139,8 +139,7 @@ func main() {
fmt.Fprintf(&buf, `// Copyright 2013 The Go Authors. All rights reserved. fmt.Fprintf(&buf, `// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style // Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.`+"\n\n") // license that can be found in the LICENSE file.`+"\n\n")
fmt.Fprintf(&buf, "// DO NOT EDIT. GENERATED BY\n") fmt.Fprintf(&buf, "// Code generated by go run makeisprint.go -output isprint.go; DO NOT EDIT.\n\n")
fmt.Fprintf(&buf, "// go run makeisprint.go -output isprint.go\n\n")
fmt.Fprintf(&buf, "package strconv\n\n") fmt.Fprintf(&buf, "package strconv\n\n")
fmt.Fprintf(&buf, "// (%d+%d+%d)*2 + (%d)*4 = %d bytes\n\n", fmt.Fprintf(&buf, "// (%d+%d+%d)*2 + (%d)*4 = %d bytes\n\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment