]> Cypherpunks.ru repositories - gostls13.git/commitdiff
test/nil.go: delete on nil maps no longer panics
authorShenghou Ma <minux.ma@gmail.com>
Thu, 13 Dec 2012 18:19:33 +0000 (02:19 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Thu, 13 Dec 2012 18:19:33 +0000 (02:19 +0800)
Fix the build.

R=golang-dev
CC=golang-dev
https://golang.org/cl/6946044

test/nil.go

index 9f7bcbb59fdb6182b2528f82bfd0019382eb62d0..6d90f5053a79d97bfd675a9c7371c1d57dc50d04 100644 (file)
@@ -151,9 +151,6 @@ func maptest() {
        shouldPanic(func() {
                m[2] = 3
        })
-       shouldPanic(func() {
-               delete(m, 2)
-       })
 }
 
 // nil slice