Skip to content

Commit

Permalink
auto merge of #13084 : Havvy/rust/master, r=alexcrichton
Browse files Browse the repository at this point in the history
The indentation looks off in the guide because the main() function is not shown, so I'm dedenting the visible function.
  • Loading branch information
bors committed Mar 22, 2014
2 parents 7e7a5e3 + a73d2c7 commit 6f430c4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/doc/guide-tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -493,14 +493,14 @@ Here is the function that implements the child task:
~~~
extern crate sync;
# fn main() {
fn stringifier(channel: &sync::DuplexStream<~str, uint>) {
let mut value: uint;
loop {
value = channel.recv();
channel.send(value.to_str());
if value == 0 { break; }
}
fn stringifier(channel: &sync::DuplexStream<~str, uint>) {
let mut value: uint;
loop {
value = channel.recv();
channel.send(value.to_str());
if value == 0 { break; }
}
}
# }
~~~~
Expand Down

0 comments on commit 6f430c4

Please sign in to comment.