summaryrefslogtreecommitdiff
path: root/test/nil.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/nil.go')
-rw-r--r--test/nil.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/nil.go b/test/nil.go
index 30cc2705b..efcf4f782 100644
--- a/test/nil.go
+++ b/test/nil.go
@@ -150,7 +150,7 @@ func maptest() {
m[2] = 3
})
shouldPanic(func() {
- m[2] = 0, false
+ delete(m, 2)
})
}