Skip to content

Commit 85c7f4d

Browse files
committed
Fix typo in IllegalArgumentException message
Fixes #995
1 parent 605f603 commit 85c7f4d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

reactive/kotlinx-coroutines-reactive/src/Await.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ private suspend fun <T> Publisher<T>.awaitOne(
117117
if (mode == Mode.SINGLE && seenValue) {
118118
subscription.cancel()
119119
if (cont.isActive)
120-
cont.resumeWithException(IllegalArgumentException("More that one onNext value for $mode"))
120+
cont.resumeWithException(IllegalArgumentException("More than one onNext value for $mode"))
121121
} else {
122122
value = t
123123
seenValue = true

reactive/kotlinx-coroutines-rx2/src/RxAwait.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ private suspend fun <T> ObservableSource<T>.awaitOne(
187187
Mode.LAST, Mode.SINGLE -> {
188188
if (mode == Mode.SINGLE && seenValue) {
189189
if (cont.isActive)
190-
cont.resumeWithException(IllegalArgumentException("More that one onNext value for $mode"))
190+
cont.resumeWithException(IllegalArgumentException("More than one onNext value for $mode"))
191191
subscription.dispose()
192192
} else {
193193
value = t

0 commit comments

Comments
 (0)