diff --git a/kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt b/kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt index 1794c9f41c..557c095ade 100644 --- a/kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt +++ b/kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt @@ -49,7 +49,7 @@ public suspend inline fun Flow.fold( /** * The terminal operator that awaits for one and only one value to be emitted. - * Throws [NoSuchElementException] for empty flow and [IllegalStateException] for flow + * Throws [NoSuchElementException] for empty flow and [IllegalArgumentException] for flow * that contains more than one element. */ public suspend fun Flow.single(): T {