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

Commit a5b08d0

Browse files
Merge pull request #875 from bgrainger/for-example
Use 'return' method. Fixes #874
2 parents d2b68e1 + 293390a commit a5b08d0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api/core/operators/for.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var array = [1, 2, 3];
2424
var source = Rx.Observable.for(
2525
array,
2626
function (x) {
27-
return Rx.Observable.returnValue(x);
27+
return Rx.Observable.return(x);
2828
});
2929

3030
var subscription = source.subscribe(

0 commit comments

Comments
 (0)