Skip to content

Commit 25a33d4

Browse files
authored
Fix docs for filter. (#2555)
1 parent 187f0aa commit 25a33d4

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/Transform.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import kotlinx.coroutines.flow.internal.unsafeFlow as flow
1515
import kotlinx.coroutines.flow.unsafeTransform as transform
1616

1717
/**
18-
* Returns a flow containing only values of the original flow that matches the given [predicate].
18+
* Returns a flow containing only values of the original flow that match the given [predicate].
1919
*/
2020
public inline fun <T> Flow<T>.filter(crossinline predicate: suspend (T) -> Boolean): Flow<T> = transform { value ->
2121
if (predicate(value)) return@transform emit(value)

0 commit comments

Comments
 (0)