Skip to content

Commit d5581e8

Browse files
committed
Merge remote-tracking branch 'origin/master' into version-1.7.1-x
2 parents e86dc85 + d653ab9 commit d5581e8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public suspend inline fun <T, R> Flow<T>.fold(
4949

5050
/**
5151
* The terminal operator that awaits for one and only one value to be emitted.
52-
* Throws [NoSuchElementException] for empty flow and [IllegalStateException] for flow
52+
* Throws [NoSuchElementException] for empty flow and [IllegalArgumentException] for flow
5353
* that contains more than one element.
5454
*/
5555
public suspend fun <T> Flow<T>.single(): T {

0 commit comments

Comments
 (0)