diff options
author | Keith Randall <khr@golang.org> | 2014-07-31 12:43:40 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2014-07-31 12:43:40 -0700 |
commit | f23ee0ac494c8aefe6c8b08542a9636e368313d1 (patch) | |
tree | c3d93770689fda0217c5ffe6bc0eda3407f9f2dc /src/cmd/api | |
parent | 72b88c30515eed2483b3feb911e6a42050c18913 (diff) | |
download | go-f23ee0ac494c8aefe6c8b08542a9636e368313d1.tar.gz |
runtime: convert slice operations to Go.
LGTM=bradfitz, dvyukov
R=golang-codereviews, bradfitz, dvyukov
CC=golang-codereviews
https://codereview.appspot.com/120190044
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 7216f4e0e..932b5520f 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{}" + src := "package runtime; type maptype struct{}; type _type struct{}; type alg struct{}; type mspan struct{}; type m struct{}; type lock struct{}; type slicetype struct{};" f, err = parser.ParseFile(fset, filename, src, 0) if err != nil { log.Fatalf("incorrect generated file: %s", err) |