From: Dmitri Shuralyov Date: Sun, 18 Oct 2020 17:02:06 +0000 (+0000) Subject: cmd/go: add /v2 to another require example X-Git-Tag: go1.16beta1~286 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cb4df9833474d36c6e4cb005682215047b5f0979;p=gostls13.git cmd/go: add /v2 to another require example This is the same change as in CL 144917, but applied to a nearby line. For #28374. Change-Id: I6e1693d3a14e2517d863d1052a06c1156fc1edd4 Reviewed-on: https://go-review.googlesource.com/c/go/+/263437 Trust: Dmitri Shuralyov Run-TryBot: Dmitri Shuralyov TryBot-Result: Go Bot Reviewed-by: Jay Conrod --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 583ae9e92e..6e0d8337bf 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -1976,7 +1976,7 @@ // like in Go imports: // // require ( -// new/thing v2.3.4 +// new/thing/v2 v2.3.4 // old/thing v1.2.3 // ) // diff --git a/src/cmd/go/internal/modload/help.go b/src/cmd/go/internal/modload/help.go index 56920c28b9..0d2dd28e5f 100644 --- a/src/cmd/go/internal/modload/help.go +++ b/src/cmd/go/internal/modload/help.go @@ -439,7 +439,7 @@ The leading verb can be factored out of adjacent lines to create a block, like in Go imports: require ( - new/thing v2.3.4 + new/thing/v2 v2.3.4 old/thing v1.2.3 )