Skip to content

Commit 53c088f

Browse files
committed
cmd/go: fix "go help build -o" docs
The docs refer to "the last two paragraphs", but in fact should refer to the first two of the previous three paragraphs. Moved up the out of place paragraph. Updates #14295 Change-Id: I066da7a665bc6754d246782b941af214a385017a Reviewed-on: https://go-review.googlesource.com/c/go/+/190839 Reviewed-by: Bryan C. Mills <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent d6ffc1d commit 53c088f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/cmd/go/alldocs.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cmd/go/internal/work/build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ along with their dependencies, but it does not install the results.
3030
If the arguments to build are a list of .go files from a single directory,
3131
build treats them as a list of source files specifying a single package.
3232
33+
When compiling packages, build ignores files that end in '_test.go'.
34+
3335
When compiling a single main package, build writes
3436
the resulting executable to an output file named after
3537
the first source file ('go build ed.go rx.go' writes 'ed' or 'ed.exe')
@@ -40,8 +42,6 @@ When compiling multiple packages or a single non-main package,
4042
build compiles the packages but discards the resulting object,
4143
serving only as a check that the packages can be built.
4244
43-
When compiling packages, build ignores files that end in '_test.go'.
44-
4545
The -o flag forces build to write the resulting executable or object
4646
to the named output file or directory, instead of the default behavior described
4747
in the last two paragraphs. If the named output is a directory that exists,

0 commit comments

Comments
 (0)