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

Commit 293390a

Browse files
committed
Use 'return' method. Fixes #874
'returnValue' was deprecated and replaced by 'return' in 3.0.
1 parent d2b68e1 commit 293390a

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)