Unindent stringifier() in tasks guide

This commit is contained in:
Ryan Scheel (Havvy) 2014-03-22 11:54:19 -07:00
parent 403e869571
commit a73d2c70d4

View File

@ -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; }
}
}
# }
~~~~