Skip to content

Commit 68e2899

Browse files
jmartin82Bryan C. Mills
authored and
Bryan C. Mills
committed
cmd/go: keep "go help" in unknown topic suggestion
Fixed missing concatenation to build the suggested command. Fixes #33153 Change-Id: I26c02f2966247aa07d1447b8ec1a2203046842dd GitHub-Last-Rev: 9631abf GitHub-Pull-Request: #33245 Reviewed-on: https://go-review.googlesource.com/c/go/+/187217 Reviewed-by: Bryan C. Mills <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent e8c7e63 commit 68e2899

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cmd/go/internal/help/help.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Args:
6363
// helpSuccess is the help command using as many args as possible that would succeed.
6464
helpSuccess := "go help"
6565
if i > 0 {
66-
helpSuccess = " " + strings.Join(args[:i], " ")
66+
helpSuccess += " " + strings.Join(args[:i], " ")
6767
}
6868
fmt.Fprintf(os.Stderr, "go help %s: unknown help topic. Run '%s'.\n", strings.Join(args, " "), helpSuccess)
6969
base.SetExitStatus(2) // failed at 'go help cmd'

0 commit comments

Comments
 (0)