Skip to content

Commit

Permalink
docs(tutorial): creating observables docs fixing typo
Browse files Browse the repository at this point in the history
`new Subject()` does something very different from `Subject.create()`.

fixes #1975
  • Loading branch information
benlesh committed Oct 3, 2016
1 parent d7355c7 commit e58a4ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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');
```
Expand Down

0 comments on commit e58a4ab

Please sign in to comment.