diff options
author | Russ Cox <rsc@golang.org> | 2008-12-18 22:37:22 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-12-18 22:37:22 -0800 |
commit | d47d888ba663014e6aa8ca043e694f4b2a5898b8 (patch) | |
tree | 851fad01a87b8fa071ed46fa0985f1857d9e47ca /test/map.go | |
parent | 9786f69f74a5fa290476774e07fb10ce8da84123 (diff) | |
download | go-d47d888ba663014e6aa8ca043e694f4b2a5898b8.tar.gz go-d47d888ba663014e6aa8ca043e694f4b2a5898b8.zip |
convert *[] to [].
R=r
OCL=21563
CL=21571
Diffstat (limited to 'test/map.go')
-rw-r--r-- | test/map.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/map.go b/test/map.go index c913fc6909..a0175feac4 100644 --- a/test/map.go +++ b/test/map.go @@ -10,7 +10,7 @@ import fmt "fmt" const arraylen = 2; // BUG: shouldn't need this -func P(a *[]string) string { +func P(a []string) string { s := "{"; for i := 0; i < len(a); i++ { if i > 0 { @@ -34,7 +34,7 @@ func main() { msi := new(map[string] int); mis := new(map[int] string); mss := new(map[string] string); - mspa := new(map[string] *[]string); + mspa := new(map[string] []string); // BUG need an interface map both ways too type T struct { |