We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e86dc85 + d653ab9 commit d5581e8Copy full SHA for d5581e8
kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt
@@ -49,7 +49,7 @@ public suspend inline fun <T, R> Flow<T>.fold(
49
50
/**
51
* The terminal operator that awaits for one and only one value to be emitted.
52
- * Throws [NoSuchElementException] for empty flow and [IllegalStateException] for flow
+ * Throws [NoSuchElementException] for empty flow and [IllegalArgumentException] for flow
53
* that contains more than one element.
54
*/
55
public suspend fun <T> Flow<T>.single(): T {
0 commit comments