Skip to content

Commit 9631abf

Browse files
committed
fixed proposed command issue on the help error message
1 parent e8c7e63 commit 9631abf

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)