From 9956aca06ab9d3083fa0afaebb640a1a25dde77f Mon Sep 17 00:00:00 2001 From: Sean Liao Date: Sat, 4 Apr 2026 00:55:05 +0100 Subject: cmd/go/internal/workcmd: correct go.work file name Fixes #51714 Change-Id: I0619b1ca6715bed85ccc066a83a449f66a6a6964 Reviewed-on: https://go-review.googlesource.com/c/go/+/762660 Reviewed-by: David Chase LUCI-TryBot-Result: Go LUCI Reviewed-by: Michael Matloob Reviewed-by: Michael Matloob --- src/cmd/go/alldocs.go | 4 ++-- src/cmd/go/internal/workcmd/edit.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/cmd') diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 1b74292327..8ded045369 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -1634,10 +1634,10 @@ // The -toolchain=name flag sets the Go toolchain to use. // // The -print flag prints the final go.work in its text format instead of -// writing it back to go.mod. +// writing it back to go.work. // // The -json flag prints the final go.work file in JSON format instead of -// writing it back to go.mod. The JSON output corresponds to these Go types: +// writing it back to go.work. The JSON output corresponds to these Go types: // // type GoWork struct { // Go string diff --git a/src/cmd/go/internal/workcmd/edit.go b/src/cmd/go/internal/workcmd/edit.go index 9b62dbb15f..2ccd1adf51 100644 --- a/src/cmd/go/internal/workcmd/edit.go +++ b/src/cmd/go/internal/workcmd/edit.go @@ -67,10 +67,10 @@ The -go=version flag sets the expected Go language version. The -toolchain=name flag sets the Go toolchain to use. The -print flag prints the final go.work in its text format instead of -writing it back to go.mod. +writing it back to go.work. The -json flag prints the final go.work file in JSON format instead of -writing it back to go.mod. The JSON output corresponds to these Go types: +writing it back to go.work. The JSON output corresponds to these Go types: type GoWork struct { Go string -- cgit v1.3-5-g9baa