From: Yann Hodique Date: Tue, 24 Jul 2018 06:23:50 +0000 (-0700) Subject: cmd/go: fix Go structs in -json documentation X-Git-Tag: go1.11beta3~93 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4f9ae7739b6bcf1a8549128f468fa41d455ac2da;p=gostls13.git cmd/go: fix Go structs in -json documentation "string" should really be "struct" in the structures describing the module. Change-Id: I4e9cb12434bd33aa243622380c78e5e297d01d0b Reviewed-on: https://go-review.googlesource.com/125638 Reviewed-by: Daniel Martí Reviewed-by: Ian Lance Taylor Run-TryBot: Daniel Martí TryBot-Result: Gobot Gobot --- diff --git a/src/cmd/go/alldocs.go b/src/cmd/go/alldocs.go index 30d1a095fe..e92d293ccd 100644 --- a/src/cmd/go/alldocs.go +++ b/src/cmd/go/alldocs.go @@ -928,7 +928,7 @@ // Indirect bool // } // -// type Replace string { +// type Replace struct { // Old Module // New Module // } diff --git a/src/cmd/go/internal/modcmd/mod.go b/src/cmd/go/internal/modcmd/mod.go index d01f699d88..ec93431085 100644 --- a/src/cmd/go/internal/modcmd/mod.go +++ b/src/cmd/go/internal/modcmd/mod.go @@ -99,7 +99,7 @@ Go types: Indirect bool } - type Replace string { + type Replace struct { Old Module New Module }