mirror of https://github.com/golang/go.git
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:
parent
28a50c7f51
commit
0df58a4b50
|
|
@ -151,9 +151,6 @@ func maptest() {
|
|||
shouldPanic(func() {
|
||||
m[2] = 3
|
||||
})
|
||||
shouldPanic(func() {
|
||||
delete(m, 2)
|
||||
})
|
||||
}
|
||||
|
||||
// nil slice
|
||||
|
|
|
|||
Loading…
Reference in New Issue