Skip to content

Commit

Permalink
Fix unused imports in the tutorials
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Feb 26, 2013
1 parent 681e6dd commit df48147
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion doc/rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
2 changes: 0 additions & 2 deletions doc/tutorial-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
2 changes: 2 additions & 0 deletions doc/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -2270,7 +2270,9 @@ fn chicken_farmer() {
// The same, but name it `my_chicken`
use my_chicken = farm::chicken;
...
# my_chicken();
}
# chicken();
# }
~~~

Expand Down

5 comments on commit df48147

@bors
Copy link
Contributor

@bors bors commented on df48147 Feb 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from catamorphism
at alexcrichton@df48147

@bors
Copy link
Contributor

@bors bors commented on df48147 Feb 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging alexcrichton/rust/fix-unused-import-pub = df48147 into auto

@bors
Copy link
Contributor

@bors bors commented on df48147 Feb 26, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alexcrichton/rust/fix-unused-import-pub = df48147 merged ok, testing candidate = a8f07dc

@bors
Copy link
Contributor

@bors bors commented on df48147 Feb 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on df48147 Feb 27, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = a8f07dc

Please sign in to comment.