mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-04-24 09:38:30 +02:00
fix code misuse in readme
This commit is contained in:
@@ -1722,7 +1722,7 @@ These special properties' values can be accessed or mutated using `.value`:
|
|||||||
```swift
|
```swift
|
||||||
CoreStore.perform(
|
CoreStore.perform(
|
||||||
asynchronous: { (transaction) in
|
asynchronous: { (transaction) in
|
||||||
let dog: Dog = CoreStore.fetchOne(From<Dog>())!
|
let dog: Dog = transaction.fetchOne(From<Dog>())!
|
||||||
// ...
|
// ...
|
||||||
let nickname = dog.nickname.value // String?
|
let nickname = dog.nickname.value // String?
|
||||||
let species = dog.species.value // String
|
let species = dog.species.value // String
|
||||||
|
|||||||
Reference in New Issue
Block a user