Skip to content

Commit 5758a77

Browse files
committed
Fix typo in documentation
1 parent 8fecc20 commit 5758a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/kotlinx-coroutines-core/src/ThreadContextElement.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public interface ThreadContextElement<S> : CoroutineContext.Element {
8484
* val myThreadLocal = ThreadLocal<String?>()
8585
* ...
8686
* println(myThreadLocal.get()) // Prints "null"
87-
* launch(CommonPool + myThreadLocal.asContextElement(initialValue = "foo")) {
87+
* launch(CommonPool + myThreadLocal.asContextElement(value = "foo")) {
8888
* println(myThreadLocal.get()) // Prints "foo"
8989
* withContext(UI) {
9090
* println(myThreadLocal.get()) // Prints "foo", but it's on UI thread

0 commit comments

Comments
 (0)