Skip to content

Commit 32336be

Browse files
authored
Replace deprecated UseExperimental annotation (#2684)
1 parent 1b1d789 commit 32336be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/topics/compatibility.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ It is done in order to produce compilation warning about using experimental or o
8080
Warnings can be disabled either programmatically for a specific call site or globally for the whole module.
8181

8282
### Programmatically
83-
For a specific call-site, warning can be disabled by using [UseExperimental](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-use-experimental/index.html) annotation:
83+
For a specific call-site, warning can be disabled by using [OptIn](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-opt-in/) annotation:
8484
```kotlin
85-
@UseExperimental(ExperimentalCoroutinesApi::class) // Disables warning about experimental coroutines API
85+
@OptIn(ExperimentalCoroutinesApi::class) // Disables warning about experimental coroutines API
8686
fun experimentalApiUsage() {
8787
someKotlinxCoroutinesExperimentalMethod()
8888
}

0 commit comments

Comments
 (0)