summaryrefslogtreecommitdiff
path: root/test/map.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/map.go')
-rw-r--r--test/map.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/map.go b/test/map.go
index c913fc690..a0175feac 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 {