auto merge of #13747 : michaelfairley/rust/patch-1, r=alexcrichton
This commit is contained in:
commit
a28a701d64
1 changed files with 1 additions and 1 deletions
|
|
@ -217,7 +217,7 @@ a `Sender` and `Receiver` (commonly abbreviated `tx` and `rx`).
|
|||
The `spawn` function spins up a new task,
|
||||
given a *heap allocated closure* to run.
|
||||
As you can see in the code,
|
||||
we call `chan.send()` from the original task,
|
||||
we call `tx.send()` from the original task,
|
||||
passing in our boxed array,
|
||||
and we call `rx.recv()` (short for 'receive') inside of the new task:
|
||||
values given to the `Sender` via the `send` method come out the other end via the `recv` method on the `Receiver`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue