Merge pull request #401 from s7v7nislands/fix_print

using fmt.Printf instead of fmt.Println
This commit is contained in:
astaxie
2014-12-16 15:00:42 +08:00

View File

@@ -271,7 +271,7 @@ Let's use an example to see more clearly.
} else if value, ok := element.(Person); ok {
fmt.Printf("list[%d] is a Person and its value is %s\n", index, value)
} else {
fmt.Println("list[%d] is of a different type", index)
fmt.Printf("list[%d] is of a different type\n", index)
}
}
}