aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/api
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2014-07-31 12:43:40 -0700
committerKeith Randall <khr@golang.org>2014-07-31 12:43:40 -0700
commitcc9ec52d739ec3c9f2a3e9bfdcc98643bee61cca (patch)
tree45b71559077a62fde3dd7bc477292538416da657 /src/cmd/api
parent2c982ce9a0d30cf7c771d24b2d4d124b8230087a (diff)
downloadgo-cc9ec52d739ec3c9f2a3e9bfdcc98643bee61cca.tar.xz
runtime: convert slice operations to Go.
LGTM=bradfitz, dvyukov R=golang-codereviews, bradfitz, dvyukov CC=golang-codereviews https://golang.org/cl/120190044
Diffstat (limited to 'src/cmd/api')
-rw-r--r--src/cmd/api/goapi.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/api/goapi.go b/src/cmd/api/goapi.go
index 7216f4e0ed..932b5520f4 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)