Skip to content

Commit 005229a

Browse files
committed
capability: fix "generated code" comment
According to [1], the generated files should contain a comment which matches the following regexp: ^// Code generated .* DO NOT EDIT\.$ Fix accordingly. [1]: https://pkg.go.dev/cmd/go#hdr-Generate_Go_files_by_processing_source Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent 4a1fbfe commit 005229a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

capability/enum_gen.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

capability/enumgen/gen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ type generator struct {
2323
}
2424

2525
func (g *generator) writeHeader() {
26-
g.buf.WriteString("// generated file; DO NOT EDIT - use go generate in directory with source\n")
26+
g.buf.WriteString("// Code generated by go generate; DO NOT EDIT.\n")
2727
g.buf.WriteString("\n")
2828
g.buf.WriteString("package capability")
2929
}

0 commit comments

Comments
 (0)