From 35a4e7bd0f9c76458d265a37819795cc59932a6d Mon Sep 17 00:00:00 2001 From: CeH9 Date: Sat, 12 Mar 2022 17:05:07 +0200 Subject: [PATCH] Fix typo: onDeliveredElement onDeliveredElement -> onUndeliveredElement --- kotlinx-coroutines-core/common/src/channels/Channel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. *