Skip to content

Commit

Permalink
Fix typos in deprecation messages (#4289)
Browse files Browse the repository at this point in the history
Closes #4288
  • Loading branch information
fzhinkin authored Dec 4, 2024
1 parent b976624 commit 3c1f6d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kotlinx-coroutines-core/common/src/flow/operators/Lint.kt
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public fun <T> StateFlow<T>.distinctUntilChanged(): Flow<T> = noImpl()
* @suppress
*/
@Deprecated(
message = "isActive is resolved into the extension of outer CoroutineScope which is likely to be an error." +
message = "isActive is resolved into the extension of outer CoroutineScope which is likely to be an error. " +
"Use currentCoroutineContext().isActive or cancellable() operator instead " +
"or specify the receiver of isActive explicitly. " +
"Additionally, flow {} builder emissions are cancellable by default.",
Expand All @@ -72,7 +72,7 @@ public val FlowCollector<*>.isActive: Boolean
* @suppress
*/
@Deprecated(
message = "cancel() is resolved into the extension of outer CoroutineScope which is likely to be an error." +
message = "cancel() is resolved into the extension of outer CoroutineScope which is likely to be an error. " +
"Use currentCoroutineContext().cancel() instead or specify the receiver of cancel() explicitly",
level = DeprecationLevel.ERROR,
replaceWith = ReplaceWith("currentCoroutineContext().cancel(cause)")
Expand All @@ -83,7 +83,7 @@ public fun FlowCollector<*>.cancel(cause: CancellationException? = null): Unit =
* @suppress
*/
@Deprecated(
message = "coroutineContext is resolved into the property of outer CoroutineScope which is likely to be an error." +
message = "coroutineContext is resolved into the property of outer CoroutineScope which is likely to be an error. " +
"Use currentCoroutineContext() instead or specify the receiver of coroutineContext explicitly",
level = DeprecationLevel.ERROR,
replaceWith = ReplaceWith("currentCoroutineContext()")
Expand Down

0 comments on commit 3c1f6d5

Please sign in to comment.