diff --git a/kotlinx-coroutines-core/common/src/channels/Channel.kt b/kotlinx-coroutines-core/common/src/channels/Channel.kt index 68ed5f1e78..5ad79fdcff 100644 --- a/kotlinx-coroutines-core/common/src/channels/Channel.kt +++ b/kotlinx-coroutines-core/common/src/channels/Channel.kt @@ -684,7 +684,7 @@ public interface ChannelIterator { * exception which is either rethrown from the caller method or handed off to the exception handler in the current context * (see [CoroutineExceptionHandler]) when one is available. * - * A typical usage for `onDeliveredElement` is to close a resource that is being transferred via the channel. The + * A typical usage for `onUndeliveredElement` is to close a resource that is being transferred via the channel. The * following code pattern guarantees that opened resources are closed even if producer, consumer, and/or channel * are cancelled. Resources are never lost. *