Fixed something wrong.

This commit is contained in:
Oling Cat
2012-09-22 16:00:26 +08:00
parent a39d2cf8fe
commit 65aa4e36d2
4 changed files with 276 additions and 276 deletions

2
2.2.md
View File

@@ -395,7 +395,7 @@ slice有一些简便的操作
// map有两个返回值第二个返回值如果不存在key那么ok为false如果存在ok为true
csharpRating, ok := rating["C#"]
if ok {
fmt.Println("C# is in the map and its rating is ", csharp_rating)
fmt.Println("C# is in the map and its rating is ", csharpRating)
} else {
fmt.Println("We have no rating associated with C# in the map")
}