Skip to content

Commit 15f0995

Browse files
matiboydbrattli
authored andcommitted
[DOCS] Getting started: fix example
Fix example for custom operator which still uses v3's rx.pipe
1 parent 5a0080c commit 15f0995

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/get_started.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,8 @@ other operators, then the implementation is straightforward, thanks to the
165165
from reactivex import operators as ops
166166
167167
def length_more_than_5():
168-
return rx.pipe(
168+
# In v4 rx.pipe has been renamed to `compose`
169+
return reactivex.compose(
169170
ops.map(lambda s: len(s)),
170171
ops.filter(lambda i: i >= 5),
171172
)

0 commit comments

Comments
 (0)