We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f03e153 commit 4545bf0Copy full SHA for 4545bf0
kotlinx-coroutines-core/common/src/flow/operators/Limit.kt
@@ -61,7 +61,7 @@ public fun <T> Flow<T>.take(count: Int): Flow<T> {
61
/**
62
* Returns a flow that contains first elements satisfying the given [predicate].
63
*
64
- * Note, that the resulting flow does not contain the element on which the [predicate] returned `true`.
+ * Note, that the resulting flow does not contain the element on which the [predicate] returned `false`.
65
* See [transformWhile] for a more flexible operator.
66
*/
67
public fun <T> Flow<T>.takeWhile(predicate: suspend (T) -> Boolean): Flow<T> = flow {
0 commit comments