diff options
| author | Keith Randall <khr@golang.org> | 2014-08-06 13:42:00 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-08-06 13:42:00 -0700 |
| commit | ea3ac6ba75c5b7496b29117687b0859ad40f3f39 (patch) | |
| tree | bc6b5427096233bd1c40995f3a5c69b2b134083b /src/cmd/api | |
| parent | f098a29630c48543df6c476cfa574ab013cfaaa6 (diff) | |
| download | go-ea3ac6ba75c5b7496b29117687b0859ad40f3f39.tar.xz | |
runtime: shorten hash declarations
LGTM=iant
R=dvyukov, iant
CC=golang-codereviews
https://golang.org/cl/117680044
Diffstat (limited to 'src/cmd/api')
| -rw-r--r-- | src/cmd/api/goapi.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go index 932b5520f4..fe3c257a55 100644 --- a/src/cmd/api/goapi.go +++ b/src/cmd/api/goapi.go @@ -378,7 +378,7 @@ func (w *Walker) parseFile(dir, file string) (*ast.File, error) { } if w.context != nil && file == fmt.Sprintf("zruntime_defs_%s_%s.go", w.context.GOOS, w.context.GOARCH) { // Just enough to keep the api checker happy. - src := "package runtime; type maptype struct{}; type _type struct{}; type alg struct{}; type mspan struct{}; type m struct{}; type lock struct{}; type slicetype struct{};" + src := "package runtime; type maptype struct{}; type _type struct{}; type alg struct{}; type mspan struct{}; type m struct{}; type lock struct{}; type slicetype struct{}; type iface struct{}; type eface struct{}" f, err = parser.ParseFile(fset, filename, src, 0) if err != nil { log.Fatalf("incorrect generated file: %s", err) |
