Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the out-of-date example in "Notification" doc #157

Merged
merged 2 commits into from
May 7, 2015

Conversation

elegoff
Copy link
Contributor

@elegoff elegoff commented May 6, 2015

After an update on OnCompleted (elegoff@ebff7cc) the example does not work if used without a small change for pattern matching

After an update on OnCompleted (ebff7cc) the example does not work if used without a small change for pattern matching
@@ -73,7 +73,7 @@ sealed trait Notification[+T] {
* import Notification._
* Observable(1, 2, 3).materialize.subscribe(n => n match {
* case OnNext(v) => println("Got value " + v)
* case OnCompleted() => println("Completed")
* case OnCompleted => println("Completed")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch.

@zsxwing zsxwing changed the title Update Notification.scala Update the out-of-date example in "Notification" doc May 6, 2015
changing Observable(1, 2, 3) to Observable.just(1, 2, 3) in the example
zsxwing added a commit that referenced this pull request May 7, 2015
Update the out-of-date example in "Notification" doc
@zsxwing zsxwing merged commit b418590 into ReactiveX:0.x May 7, 2015
@zsxwing
Copy link
Member

zsxwing commented May 7, 2015

LGTM. Merged. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants