README.md

This commit is contained in:
Gwendal Roué committed 2015-07-16 20:13:48 +02:00
1 parent a5ec286c71
commit 5488666d20
1 file changed
+1
+1
View File
@@ -235,6 +235,7 @@ let hasBooks: Bool = row.value(named: "bookCount")! // false when 0
```swift
row.value(named: "bookCount")! as Int // OK: Int
row.value(named: "bookCount") as Int? // OK: Int?
row.value(named: "bookCount") as! Int // NO NO NO DON'T DO THAT!
row.value(named: "bookCount") as? Int // NO NO NO DON'T DO THAT!
```