diff --git a/Documentation/ObservableCollections.md b/Documentation/ObservableCollections.md index aa744d81..27da70f9 100644 --- a/Documentation/ObservableCollections.md +++ b/Documentation/ObservableCollections.md @@ -30,7 +30,7 @@ names[1] = "Mark" // prints: array: ["Steve", "Mark"], diff: Updates: [1], pa Observable array can be mapped (`mapCollection`), filtered (`filterCollection`) or sorted (`sortedCollection`). For example, if we map our array -``` +```swift names.mapCollection { $0.count }.observeNext { e in print("array: \(e.collection), diff: \(e.diff), patch: \(e.patch)") }