1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-01-10 00:44:21 +02:00

Update bounded.md (#1919)

Shouldn't it be `recv` instead of `read`? I don't see a `read` function
in Receiver.
This commit is contained in:
kochinc 2024-03-12 16:48:54 -04:00 committed by GitHub
parent 8dbe80331b
commit 4b27e28e7f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -34,6 +34,6 @@ fn main() {
- A call to `send` will abort with an error (that is why it returns `Result`) if - 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. 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 - 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`.
</details> </details>