Skip to content

Commit 80be399

Browse files
authored
Merge pull request #3569 from typelevel/sam/chunkN-doc-clarification
clarify chunkN doc about allowFewer
2 parents 768e716 + 96e7516 commit 80be399

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
@@ -446,7 +446,7 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,
446446
/** Outputs chunks of size `n`.
447447
*
448448
* Chunks from the source stream are split as necessary.
449-
* If `allowFewer` is true, the last chunk that is emitted may have less than `n` elements.
449+
* If `allowFewer` is true, the last chunk that is emitted, upon completion of the stream, may have fewer than `n` elements.
450450
*
451451
* Note: the emitted chunk may be a composite chunk (i.e., an instance of `Chunk.Queue`) and
452452
* hence may not have O(1) lookup by index. Consider calling `.map(_.compact)` if indexed

0 commit comments

Comments
 (0)