From 4b27e28e7f8360eb57519f4574d3c3a3278bdbd3 Mon Sep 17 00:00:00 2001 From: kochinc <1756865+kochinc@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:48:54 -0400 Subject: [PATCH] Update bounded.md (#1919) Shouldn't it be `recv` instead of `read`? I don't see a `read` function in Receiver. --- src/concurrency/channels/bounded.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/concurrency/channels/bounded.md b/src/concurrency/channels/bounded.md index 83eec8687c6a..0cb9fe91d208 100644 --- a/src/concurrency/channels/bounded.md +++ b/src/concurrency/channels/bounded.md @@ -34,6 +34,6 @@ fn main() { - A call to `send` will abort with an error (that is why it returns `Result`) if the channel is closed. A channel is closed when the receiver is dropped. - A bounded channel with a size of zero is called a "rendezvous channel". Every - send will block the current thread until another thread calls `read`. + send will block the current thread until another thread calls `recv`.