Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit d2b68e1

Browse files
Merge pull request #870 from xgrommx/patch-1
Update generators.md
2 parents 146384d + 9ea5d3d commit d2b68e1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

doc/gettingstarted/generators.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ var Rx = require('rx');
6464
var request = require('request');
6565
var get = Rx.Observable.fromNodeCallback(request);
6666

67-
Rx.spawn(function* () {
67+
Rx.Observable.spawn(function* () {
6868
var data;
6969
try {
7070
data = yield get('http://bing.com').timeout(5000 /*ms*/);
@@ -73,7 +73,7 @@ Rx.spawn(function* () {
7373
}
7474

7575
console.log(data);
76-
})();
76+
}).subscribe();
7777
```
7878

7979
## Mixing Operators with Generators ##
@@ -146,4 +146,4 @@ Notice that in this sample, move becomes an observable sequence in which we can
146146
## See Also
147147

148148
Concepts
149-
- [Querying Observable Sequences](querying.md)
149+
- [Querying Observable Sequences](querying.md)

0 commit comments

Comments
 (0)