From e58a4ab7569dc1e40f2bfeeb3b44ca63e304df81 Mon Sep 17 00:00:00 2001 From: Ben Lesh Date: Mon, 3 Oct 2016 14:27:40 -0700 Subject: [PATCH] docs(tutorial): creating observables docs fixing typo `new Subject()` does something very different from `Subject.create()`. fixes #1975 --- doc/tutorial/basics.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/tutorial/basics.md b/doc/tutorial/basics.md index 4d603ef7f7..55a22706f5 100644 --- a/doc/tutorial/basics.md +++ b/doc/tutorial/basics.md @@ -29,7 +29,7 @@ rename('file.txt', 'else.txt').subscribe(() => console.log('Renamed!')); ## Creating observables Externally produce new events. ```js -var myObservable = Rx.Subject.create(); +var myObservable = new Rx.Subject(); myObservable.subscribe(value => console.log(value)); myObservable.next('foo'); ```