Skip to content

Commit 3c1f6d5

Browse files
authored
Fix typos in deprecation messages (#4289)
Closes #4288
1 parent b976624 commit 3c1f6d5

File tree

1 file changed

+3
-3
lines changed
  • kotlinx-coroutines-core/common/src/flow/operators

1 file changed

+3
-3
lines changed

kotlinx-coroutines-core/common/src/flow/operators/Lint.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public fun <T> StateFlow<T>.distinctUntilChanged(): Flow<T> = noImpl()
5858
* @suppress
5959
*/
6060
@Deprecated(
61-
message = "isActive is resolved into the extension of outer CoroutineScope which is likely to be an error." +
61+
message = "isActive is resolved into the extension of outer CoroutineScope which is likely to be an error. " +
6262
"Use currentCoroutineContext().isActive or cancellable() operator instead " +
6363
"or specify the receiver of isActive explicitly. " +
6464
"Additionally, flow {} builder emissions are cancellable by default.",
@@ -72,7 +72,7 @@ public val FlowCollector<*>.isActive: Boolean
7272
* @suppress
7373
*/
7474
@Deprecated(
75-
message = "cancel() is resolved into the extension of outer CoroutineScope which is likely to be an error." +
75+
message = "cancel() is resolved into the extension of outer CoroutineScope which is likely to be an error. " +
7676
"Use currentCoroutineContext().cancel() instead or specify the receiver of cancel() explicitly",
7777
level = DeprecationLevel.ERROR,
7878
replaceWith = ReplaceWith("currentCoroutineContext().cancel(cause)")
@@ -83,7 +83,7 @@ public fun FlowCollector<*>.cancel(cause: CancellationException? = null): Unit =
8383
* @suppress
8484
*/
8585
@Deprecated(
86-
message = "coroutineContext is resolved into the property of outer CoroutineScope which is likely to be an error." +
86+
message = "coroutineContext is resolved into the property of outer CoroutineScope which is likely to be an error. " +
8787
"Use currentCoroutineContext() instead or specify the receiver of coroutineContext explicitly",
8888
level = DeprecationLevel.ERROR,
8989
replaceWith = ReplaceWith("currentCoroutineContext()")

0 commit comments

Comments
 (0)