Skip to content

Commit 43afb1a

Browse files
shuLhanmvdan
authored andcommitted
cmd/go: fix documentation on how to create new go.mod file
The correct command to create new go.mod file should be 'go mod init', not 'go help init'. Change-Id: I1150621987d989997f8b75e6a13fe96423a11cf3 Reviewed-on: https://go-review.googlesource.com/c/go/+/305289 Reviewed-by: Jay Conrod <[email protected]> Reviewed-by: Daniel Martí <[email protected]> Trust: Jay Conrod <[email protected]> Trust: Daniel Martí <[email protected]> Run-TryBot: Jay Conrod <[email protected]> TryBot-Result: Go Bot <[email protected]>
1 parent 89b141c commit 43afb1a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/cmd/go/alldocs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ marking the root of the main (current) module.
4646
The go.mod file format is described in detail at
4747
https://golang.org/ref/mod#go-mod-file.
4848
49-
To create a new go.mod file, use 'go help init'. For details see
49+
To create a new go.mod file, use 'go mod init'. For details see
5050
'go help mod init' or https://golang.org/ref/mod#go-mod-init.
5151
5252
To add missing module requirements or remove unneeded requirements,

0 commit comments

Comments
 (0)