diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2013-02-26 01:23:36 -0500 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2013-02-26 17:52:16 -0500 |
| commit | df481473dae024e522afd669646fa779d97c5e2d (patch) | |
| tree | 5c6149fb10e35de5b05350a8c00814bbbbaccb3b | |
| parent | 681e6dd40d5882465f74eebf2f1802c76b0df063 (diff) | |
| download | rust-df481473dae024e522afd669646fa779d97c5e2d.tar.gz rust-df481473dae024e522afd669646fa779d97c5e2d.zip | |
Fix unused imports in the tutorials
| -rw-r--r-- | doc/rust.md | 1 | ||||
| -rw-r--r-- | doc/tutorial-tasks.md | 2 | ||||
| -rw-r--r-- | doc/tutorial.md | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/doc/rust.md b/doc/rust.md index 9a3d087f3d7..a4e4e4cdf24 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -1611,7 +1611,6 @@ The following are examples of structure expressions: # struct Point { x: float, y: float } # struct TuplePoint(float, float); # mod game { pub struct User { name: &str, age: uint, score: uint } } -# use game; Point {x: 10f, y: 20f}; TuplePoint(10f, 20f); let u = game::User {name: "Joe", age: 35u, score: 100_000}; diff --git a/doc/tutorial-tasks.md b/doc/tutorial-tasks.md index c0f9a376270..22d0ff8bf78 100644 --- a/doc/tutorial-tasks.md +++ b/doc/tutorial-tasks.md @@ -468,7 +468,6 @@ Here is the function that implements the child task: ~~~~ # use std::comm::DuplexStream; -# use comm::{Port, Chan}; fn stringifier(channel: &DuplexStream<~str, uint>) { let mut value: uint; loop { @@ -491,7 +490,6 @@ Here is the code for the parent task: ~~~~ # use std::comm::DuplexStream; -# use comm::{Port, Chan}; # use task::spawn; # fn stringifier(channel: &DuplexStream<~str, uint>) { # let mut value: uint; diff --git a/doc/tutorial.md b/doc/tutorial.md index cd683490a59..98ec9d1f580 100644 --- a/doc/tutorial.md +++ b/doc/tutorial.md @@ -2270,7 +2270,9 @@ fn chicken_farmer() { // The same, but name it `my_chicken` use my_chicken = farm::chicken; ... +# my_chicken(); } +# chicken(); # } ~~~ |
