]> git.lizzy.rs Git - rust.git/commitdiff
Fix variable name in prose to match code it's describing
authorMichael Fairley <michaelfairley@gmail.com>
Fri, 25 Apr 2014 15:15:47 +0000 (10:15 -0500)
committerMichael Fairley <michaelfairley@gmail.com>
Fri, 25 Apr 2014 15:15:47 +0000 (10:15 -0500)
src/doc/intro.md

index 513f4ab22e3ebe0953c49f93faebb0ce22dc8d88..5b36856660dae03787ee253861bc4f95bd513e83 100644 (file)
@@ -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`.