]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix Go structs in -json documentation
authorYann Hodique <yhodique@google.com>
Tue, 24 Jul 2018 06:23:50 +0000 (23:23 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 24 Jul 2018 14:29:38 +0000 (14:29 +0000)
"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í <mvdan@mvdan.cc>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/go/alldocs.go
src/cmd/go/internal/modcmd/mod.go

index 30d1a095feb1faae7385aa2d699661ea144a1607..e92d293ccd3d5c362bbfb8f57113fbda35c6296c 100644 (file)
 //             Indirect bool
 //     }
 //
-//     type Replace string {
+//     type Replace struct {
 //             Old Module
 //             New Module
 //     }
index d01f699d888f125d06ac908d03f0a70a26a885ec..ec93431085f4a4c5ba6b8b9e3c10fdcbb45fc01f 100644 (file)
@@ -99,7 +99,7 @@ Go types:
                Indirect bool
        }
        
-       type Replace string {
+       type Replace struct {
                Old Module
                New Module
        }