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'); ```