]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: correct -trimpath docs for the standard library
authorMark Pulford <mark@kyne.com.au>
Sat, 22 Jan 2022 06:13:53 +0000 (16:43 +1030)
committerEmmanuel Odeke <emmanuel@orijtech.com>
Sat, 29 Jan 2022 03:53:30 +0000 (03:53 +0000)
Fixes #50402

Change-Id: Ic539afc1aef3906ef591b403eba0fde20a5ccef2
Reviewed-on: https://go-review.googlesource.com/c/go/+/380078
Reviewed-by: Bryan Mills <bcmills@google.com>
Trust: Emmanuel Odeke <emmanuel@orijtech.com>
Run-TryBot: Emmanuel Odeke <emmanuel@orijtech.com>

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

index 1d3098a76e4597c7f12cf00506ce372e225fa513..826b0ccf19ce359c5235a3a7a81b069748caea68 100644 (file)
 //     -trimpath
 //             remove all file system paths from the resulting executable.
 //             Instead of absolute file system paths, the recorded file names
-//             will begin with either "go" (for the standard library),
-//             or a module path@version (when using modules),
-//             or a plain import path (when using GOPATH).
+//             will begin either a module path@version (when using modules),
+//             or a plain import path (when using the standard library, or GOPATH).
 //     -toolexec 'cmd args'
 //             a program to use to invoke toolchain programs like vet and asm.
 //             For example, instead of running asm, the go command will run
index 56648338c553c47e2c4f664acd278d926a78fcee..1c278d3d992838549ea170ada4b53ef581244171 100644 (file)
@@ -162,9 +162,8 @@ and test commands:
        -trimpath
                remove all file system paths from the resulting executable.
                Instead of absolute file system paths, the recorded file names
-               will begin with either "go" (for the standard library),
-               or a module path@version (when using modules),
-               or a plain import path (when using GOPATH).
+               will begin either a module path@version (when using modules),
+               or a plain import path (when using the standard library, or GOPATH).
        -toolexec 'cmd args'
                a program to use to invoke toolchain programs like vet and asm.
                For example, instead of running asm, the go command will run