From 4f9ae7739b6bcf1a8549128f468fa41d455ac2da Mon Sep 17 00:00:00 2001 From: Yann Hodique Date: Mon, 23 Jul 2018 23:23:50 -0700 Subject: [PATCH] cmd/go: fix Go structs in -json documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "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 --- src/cmd/go/alldocs.go | 2 +- src/cmd/go/internal/modcmd/mod.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }