From 548c7e2a5d9b0039b579ced44e45ec4563696780 Mon Sep 17 00:00:00 2001 From: Constantine Linnick Date: Sun, 13 Jan 2019 16:32:15 +0300 Subject: [PATCH] Clarifying non obvious syntax with cryptic error --- proposals/coroutines.md | 1 + 1 file changed, 1 insertion(+) diff --git a/proposals/coroutines.md b/proposals/coroutines.md index 6e0857d99..e9506a617 100644 --- a/proposals/coroutines.md +++ b/proposals/coroutines.md @@ -625,6 +625,7 @@ The following style is recommended for library defined context elements. The example below shows a hypothetical authorization context element that stores current user name: ```kotlin +// AuthUser here is a reference to the companion object, shorthand for AuthUser.Key class AuthUser(val name: String) : AbstractCoroutineContextElement(AuthUser) { companion object Key : CoroutineContext.Key }