Skip to content

Commit 997ed6f

Browse files
committed
cmd/go: make it clearer that go generate accepts all build flags
Just add one word to clarify that -n -v -x are not the only build flags supported. Fixes #13237. Change-Id: I880472639bf2fc1a0751a83041bc7ddd0c9e55f4 Reviewed-on: https://go-review.googlesource.com/17062 Reviewed-by: Andrew Gerrand <[email protected]>
1 parent f2a0fc1 commit 997ed6f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/go/alldocs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ Go generate accepts one specific flag:
451451
any trailing spaces and final newline) matches the
452452
expression.
453453
454-
It also accepts the standard build flags -v, -n, and -x.
454+
It also accepts the standard build flags including -v, -n, and -x.
455455
The -v flag prints the names of packages and files as they are
456456
processed.
457457
The -n flag prints commands that would be executed.

src/cmd/go/generate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ Go generate accepts one specific flag:
115115
any trailing spaces and final newline) matches the
116116
expression.
117117
118-
It also accepts the standard build flags -v, -n, and -x.
118+
It also accepts the standard build flags including -v, -n, and -x.
119119
The -v flag prints the names of packages and files as they are
120120
processed.
121121
The -n flag prints commands that would be executed.

0 commit comments

Comments
 (0)