Skip to content

Commit

Permalink
[DOCS] Getting started: fix example
Browse files Browse the repository at this point in the history
Fix example for custom operator which still uses v3's rx.pipe
  • Loading branch information
matiboy authored and dbrattli committed Dec 31, 2022
1 parent 5a0080c commit 15f0995
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/get_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,8 @@ other operators, then the implementation is straightforward, thanks to the
from reactivex import operators as ops
def length_more_than_5():
return rx.pipe(
# In v4 rx.pipe has been renamed to `compose`
return reactivex.compose(
ops.map(lambda s: len(s)),
ops.filter(lambda i: i >= 5),
)
Expand Down

0 comments on commit 15f0995

Please sign in to comment.