1
0
mirror of https://github.com/golang/go synced 2024-11-19 02:44:44 -07:00

go.tools/ssa: don't print * on type of package-level vars (*ssa.Global)

R=gri, gri
CC=golang-dev
https://golang.org/cl/26240043
This commit is contained in:
Alan Donovan 2013-11-13 15:13:55 -05:00
parent 70692d3c5f
commit 677415b351
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ func main() {
//
// package main:
// func init func()
// var init$guard *bool
// var init$guard bool
// func main func()
// const message message = "Hello, World!":untyped string
//

View File

@ -426,7 +426,7 @@ func (p *Package) DumpTo(w io.Writer) {
}
case *Global:
fmt.Fprintf(w, " var %-*s %s\n", maxname, name, mem.Type())
fmt.Fprintf(w, " var %-*s %s\n", maxname, name, mem.Type().(*types.Pointer).Elem())
}
}