]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix spacing in help text of -overlay flag
authorBen Hoyt <benhoyt@gmail.com>
Thu, 13 May 2021 21:59:20 +0000 (09:59 +1200)
committerBryan C. Mills <bcmills@google.com>
Fri, 14 May 2021 14:37:54 +0000 (14:37 +0000)
There was a space missing in the first line shown below, and an extra
space in the second line shown. Thanks Peter Bourgon for noting this.

BEFORE:
$ go help build | grep -A1 'has some limitations'
has some limitations:importantly, cgo files included from outside the
include path must be  in the same directory as the Go package they are

AFTER:
$ go help build | grep -A1 'has some limitations'
has some limitations: importantly, cgo files included from outside the
include path must be in the same directory as the Go package they are

Note that I edited alldocs.go by hand here, as the mkalldocs.sh script
produces a lot more changes, for example adding the -insecure flag
documentation in. Not sure what's wrong there.

Change-Id: I303f6d6b42b0e24cec0748a949dc23beec64b917
Reviewed-on: https://go-review.googlesource.com/c/go/+/319949
Reviewed-by: Jay Conrod <jayconrod@google.com>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
Trust: Jay Conrod <jayconrod@google.com>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>

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

index 052b61c03dde56a436cc3f063e72f9033643b12c..fcc7f36335ec4510bf53f308076f05ea7b6110bc 100644 (file)
 //             a build will run as if the disk file path exists with the contents
 //             given by the backing file paths, or as if the disk file path does not
 //             exist if its backing file path is empty. Support for the -overlay flag
-//             has some limitations:importantly, cgo files included from outside the
-//             include path must be  in the same directory as the Go package they are
+//             has some limitations: importantly, cgo files included from outside the
+//             include path must be in the same directory as the Go package they are
 //             included from, and overlays will not appear when binaries and tests are
 //             run through go run and go test respectively.
 //     -pkgdir dir
index 1babbda88998de64eee692f64e70ed9aa1d674dc..0ed2389cd5a81af6f3ff862dd275b9fb9ba0109e 100644 (file)
@@ -128,8 +128,8 @@ and test commands:
                a build will run as if the disk file path exists with the contents
                given by the backing file paths, or as if the disk file path does not
                exist if its backing file path is empty. Support for the -overlay flag
-               has some limitations:importantly, cgo files included from outside the
-               include path must be  in the same directory as the Go package they are
+               has some limitations: importantly, cgo files included from outside the
+               include path must be in the same directory as the Go package they are
                included from, and overlays will not appear when binaries and tests are
                run through go run and go test respectively.
        -pkgdir dir