mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-02-22 07:38:04 +01: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
|
||||
CoreStore.perform(
|
||||
asynchronous: { (transaction) in
|
||||
let dog: Dog = CoreStore.fetchOne(From<Dog>())!
|
||||
let dog: Dog = transaction.fetchOne(From<Dog>())!
|
||||
// ...
|
||||
let nickname = dog.nickname.value // String?
|
||||
let species = dog.species.value // String
|
||||
|
||||
Reference in New Issue
Block a user