Skip to content

Commit 6fa843f

Browse files
committed
Add result type to Stream#withFilter
1 parent 196995d commit 6fa843f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/shared/src/main/scala/fs2/Stream.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2853,7 +2853,7 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,
28532853
/** Alias for [[filter]]
28542854
* Implemented to enable filtering in for comprehensions
28552855
*/
2856-
def withFilter(f: O => Boolean) = this.filter(f)
2856+
def withFilter(f: O => Boolean): Stream[F, O] = this.filter(f)
28572857

28582858
private type ZipWithLeft[G[_], I, O2] = (Chunk[I], Stream[G, I]) => Pull[G, O2, Unit]
28592859

0 commit comments

Comments
 (0)