Update README.md

This commit is contained in:
peofessordeng authored and GitHub committed 2020-12-04 11:07:37 +08:00
1 parent 2a917823ed
commit 7ded56dfc4
1 file changed
+1 -1
+1 -1
View File
@@ -2280,7 +2280,7 @@ let spain = try Country.fetchOne(db, key: "ES") // Country?
To update a record in the database, call the `update` method:
```swift
if let player = try Player.fetchOne(db, key: 1)
if let player = try Player.fetchOne(db, key: 1) {
player.score = 1000
try player.update(db)
}