File tree 3 files changed +2
-3
lines changed
3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1611,7 +1611,6 @@ The following are examples of structure expressions:
1611
1611
# struct Point { x: float, y: float }
1612
1612
# struct TuplePoint(float, float);
1613
1613
# mod game { pub struct User { name: &str, age: uint, score: uint } }
1614
- # use game;
1615
1614
Point {x: 10f, y: 20f};
1616
1615
TuplePoint(10f, 20f);
1617
1616
let u = game::User {name: "Joe", age: 35u, score: 100_000};
Original file line number Diff line number Diff line change @@ -468,7 +468,6 @@ Here is the function that implements the child task:
468
468
469
469
~~~~
470
470
# use std::comm::DuplexStream;
471
- # use comm::{Port, Chan};
472
471
fn stringifier(channel: &DuplexStream<~str, uint>) {
473
472
let mut value: uint;
474
473
loop {
@@ -491,7 +490,6 @@ Here is the code for the parent task:
491
490
492
491
~~~~
493
492
# use std::comm::DuplexStream;
494
- # use comm::{Port, Chan};
495
493
# use task::spawn;
496
494
# fn stringifier(channel: &DuplexStream<~str, uint>) {
497
495
# let mut value: uint;
Original file line number Diff line number Diff line change @@ -2270,7 +2270,9 @@ fn chicken_farmer() {
2270
2270
// The same, but name it `my_chicken`
2271
2271
use my_chicken = farm::chicken;
2272
2272
...
2273
+ # my_chicken();
2273
2274
}
2275
+ # chicken();
2274
2276
# }
2275
2277
~~~
2276
2278
You can’t perform that action at this time.
0 commit comments