Skip to content

Commit 0c057c8

Browse files
albinekcomkzaher
authored andcommitted
Add missing syntax highlighting
1 parent 3722e09 commit 0c057c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/Traits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ Any observable sequence can be converted to `Driver` trait, as long as it satisf
379379

380380
So how do you make sure those properties are satisfied? Just use normal Rx operators. `asDriver(onErrorJustReturn: [])` is equivalent to following code.
381381

382-
```
382+
```swift
383383
let safeSequence = xs
384384
.observeOn(MainScheduler.instance) // observe events on main scheduler
385385
.catchErrorJustReturn(onErrorJustReturn) // can't error out

0 commit comments

Comments
 (0)