Skip to content
This repository has been archived by the owner on Oct 14, 2021. It is now read-only.

Commit

Permalink
Fix typo in README.md guides.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Verkoeyen committed Dec 3, 2016
1 parent ad148e6 commit 8f762cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ let pan = UIPanGestureRecognizer()
view.addGestureRecognizer(pan)

let dragStream = IndefiniteObservable<DragProducer.Value> { observer in
return DragProducer(subscribedTo: pan, observer: observer).subscription
return DragProducer(subscribedTo: pan, observer: observer).unsubscribe
}
let subscription = dragStream.subscribe {
dump($0.state)
Expand Down Expand Up @@ -233,7 +233,7 @@ It often is helpful to provide the observer with the current state on registrati

```swift
let dragStream = IndefiniteObservable<DragProducer.Value> { observer in
return DragProducer(subscribedTo: pan, observer: observer).subscription
return DragProducer(subscribedTo: pan, observer: observer).unsubscribe
}
let subscription = dragStream.subscribe {
dump($0)
Expand Down

0 comments on commit 8f762cd

Please sign in to comment.