Skip to content

Commit

Permalink
Updated Results.swift example docs for "observe"
Browse files Browse the repository at this point in the history
  • Loading branch information
bmunkholm authored May 28, 2019
1 parent 321d9cc commit ce94f4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RealmSwift/Results.swift
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public final class Results<Element: RealmCollectionValue>: NSObject, NSFastEnume
will reflect the state of the Realm after the write transaction.

```swift
let results = realm.objects(Dog.self)
let dogs = realm.objects(Dog.self)
print("dogs.count: \(dogs?.count)") // => 0
let token = dogs.observe { changes in
switch changes {
Expand Down

0 comments on commit ce94f4b

Please sign in to comment.