1
0
mirror of https://github.com/golang/go synced 2024-11-22 14:15:05 -07:00

test/nil.go: delete on nil maps no longer panics

Fix the build.

R=golang-dev
CC=golang-dev
https://golang.org/cl/6946044
This commit is contained in:
Shenghou Ma 2012-12-14 02:19:33 +08:00
parent 28a50c7f51
commit 0df58a4b50

View File

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