Skip to content

Commit a28a701

Browse files
committed
auto merge of #13747 : michaelfairley/rust/patch-1, r=alexcrichton
2 parents eea4909 + 3124057 commit a28a701

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ a `Sender` and `Receiver` (commonly abbreviated `tx` and `rx`).
217217
The `spawn` function spins up a new task,
218218
given a *heap allocated closure* to run.
219219
As you can see in the code,
220-
we call `chan.send()` from the original task,
220+
we call `tx.send()` from the original task,
221221
passing in our boxed array,
222222
and we call `rx.recv()` (short for 'receive') inside of the new task:
223223
values given to the `Sender` via the `send` method come out the other end via the `recv` method on the `Receiver`.

0 commit comments

Comments
 (0)