From df481473dae024e522afd669646fa779d97c5e2d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 26 Feb 2013 01:23:36 -0500 Subject: [PATCH] Fix unused imports in the tutorials --- doc/rust.md | 1 - doc/tutorial-tasks.md | 2 -- doc/tutorial.md | 2 ++ 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/doc/rust.md b/doc/rust.md index 9a3d087f3d723..a4e4e4cdf24f4 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 c0f9a37627065..22d0ff8bf78a2 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 cd683490a59ac..98ec9d1f58037 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(); # } ~~~