Skip to content

Commit df48147

Browse files
committed
Fix unused imports in the tutorials
1 parent 681e6dd commit df48147

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

doc/rust.md

-1
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,6 @@ The following are examples of structure expressions:
16111611
# struct Point { x: float, y: float }
16121612
# struct TuplePoint(float, float);
16131613
# mod game { pub struct User { name: &str, age: uint, score: uint } }
1614-
# use game;
16151614
Point {x: 10f, y: 20f};
16161615
TuplePoint(10f, 20f);
16171616
let u = game::User {name: "Joe", age: 35u, score: 100_000};

doc/tutorial-tasks.md

-2
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,6 @@ Here is the function that implements the child task:
468468

469469
~~~~
470470
# use std::comm::DuplexStream;
471-
# use comm::{Port, Chan};
472471
fn stringifier(channel: &DuplexStream<~str, uint>) {
473472
let mut value: uint;
474473
loop {
@@ -491,7 +490,6 @@ Here is the code for the parent task:
491490

492491
~~~~
493492
# use std::comm::DuplexStream;
494-
# use comm::{Port, Chan};
495493
# use task::spawn;
496494
# fn stringifier(channel: &DuplexStream<~str, uint>) {
497495
# let mut value: uint;

doc/tutorial.md

+2
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,9 @@ fn chicken_farmer() {
22702270
// The same, but name it `my_chicken`
22712271
use my_chicken = farm::chicken;
22722272
...
2273+
# my_chicken();
22732274
}
2275+
# chicken();
22742276
# }
22752277
~~~
22762278

0 commit comments

Comments
 (0)