summaryrefslogtreecommitdiff
path: root/test/nil.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/nil.go')
-rw-r--r--test/nil.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/nil.go b/test/nil.go
index 30cc2705b..9f7bcbb59 100644
--- a/test/nil.go
+++ b/test/nil.go
@@ -1,9 +1,11 @@
-// $G $F.go && $L $F.$A && ./$A.out
+// run
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
+// Test nil.
+
package main
import (
@@ -150,7 +152,7 @@ func maptest() {
m[2] = 3
})
shouldPanic(func() {
- m[2] = 0, false
+ delete(m, 2)
})
}