diff options
author | Russ Cox <rsc@golang.org> | 2008-12-19 03:05:37 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2008-12-19 03:05:37 -0800 |
commit | 08ca30bbfad04d3ca1bf7ae75c291b91ecb00aef (patch) | |
tree | 183e8cd345f5f895d2cbc36dd8f8be93640303c3 /test/nil.go | |
parent | d47d888ba663014e6aa8ca043e694f4b2a5898b8 (diff) | |
download | go-git-08ca30bbfad04d3ca1bf7ae75c291b91ecb00aef.tar.gz |
change *map to map; *chan to chan; new(T) to new(*T)
fix bugs left over from *[] to [] conversion.
TBR=r
OCL=21576
CL=21581
Diffstat (limited to 'test/nil.go')
-rw-r--r-- | test/nil.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/nil.go b/test/nil.go index f26ba3221c..8cd8e57aac 100644 --- a/test/nil.go +++ b/test/nil.go @@ -17,8 +17,8 @@ func main() { var i *int; var f *float; var s *string; - var m *map[float] *int; - var c *chan int; + var m map[float] *int; + var c chan int; var t *T; var in IN; var ta []IN; @@ -30,6 +30,6 @@ func main() { c = nil; t = nil; i = nil; - ta = new([1]IN); + ta = new([]IN, 1); ta[0] = nil; } |