Skip to content

Commit 85050d3

Browse files
authored
Merge pull request #3559 from lenguyenthanh/patch-1
Make comment align with code for Stream.takeWhile
2 parents a3f737b + a026b92 commit 85050d3

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
@@ -2896,7 +2896,7 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,
28962896
def takeThrough(p: O => Boolean): Stream[F, O] =
28972897
this.pull.takeThrough(p).void.stream
28982898

2899-
/** Emits the longest prefix of the input for which all elements test true according to `f`.
2899+
/** Emits the longest prefix of the input for which all elements test true according to `p`.
29002900
*
29012901
* @example {{{
29022902
* scala> Stream.range(0,1000).takeWhile(_ != 5).toList

0 commit comments

Comments
 (0)