This commit is contained in:
Mark McGranaghan 2012-10-10 22:04:54 -07:00
parent caf7192bbe
commit dbe040a03e

View File

@ -24,8 +24,8 @@ func main() {
v1 := m["k1"] v1 := m["k1"]
fmt.Println("v1: ", v1) fmt.Println("v1: ", v1)
// The builtin `len` function returns the number of // The builtin `len` returns the number of key/value
// key/value pairs when called on a map. // pairs when called on a map.
fmt.Println("len:", len(m)) fmt.Println("len:", len(m))
// The builtin `delete` removes key/value pairs from // The builtin `delete` removes key/value pairs from