Skip to content

Commit 4545bf0

Browse files
elizarovEdwarDDay
andauthored
Update kotlinx-coroutines-core/common/src/flow/operators/Limit.kt
Co-authored-by: EdwarDDay <[email protected]>
1 parent f03e153 commit 4545bf0

File tree

1 file changed

+1
-1
lines changed
  • kotlinx-coroutines-core/common/src/flow/operators

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/flow/operators/Limit.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public fun <T> Flow<T>.take(count: Int): Flow<T> {
6161
/**
6262
* Returns a flow that contains first elements satisfying the given [predicate].
6363
*
64-
* Note, that the resulting flow does not contain the element on which the [predicate] returned `true`.
64+
* Note, that the resulting flow does not contain the element on which the [predicate] returned `false`.
6565
* See [transformWhile] for a more flexible operator.
6666
*/
6767
public fun <T> Flow<T>.takeWhile(predicate: suspend (T) -> Boolean): Flow<T> = flow {

0 commit comments

Comments
 (0)