]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go/internal/modcmd: fix "go mod editwork" error text
authorcitizen233 <mengrenxiong@gmail.com>
Tue, 28 Sep 2021 06:05:20 +0000 (14:05 +0800)
committerBryan C. Mills <bcmills@google.com>
Wed, 29 Sep 2021 20:45:11 +0000 (20:45 +0000)
Fixes #48583

Change-Id: I863ece5c546c383a2f46b8b1a36cbf9f2526d3ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/352709
Reviewed-by: Jay Conrod <jayconrod@google.com>
Trust: Dmitri Shuralyov <dmitshur@golang.org>

src/cmd/go/internal/modcmd/editwork.go

index 235c65538797eb7ac8ac73d8455f13d678b8f026..50f86366a0e1a2832ef22fe197b70b0915fbdf86 100644 (file)
@@ -118,7 +118,7 @@ func runEditwork(ctx context.Context, cmd *base.Command, args []string) {
                        len(workedits) > 0
 
        if !anyFlags {
-               base.Fatalf("go: no flags specified (see 'go help mod edit').")
+               base.Fatalf("go: no flags specified (see 'go help mod editwork').")
        }
 
        if *editworkJSON && *editworkPrint {