Unindent stringifier() in tasks guide
This commit is contained in:
parent
403e869571
commit
a73d2c70d4
1 changed files with 7 additions and 7 deletions
|
@ -493,14 +493,14 @@ Here is the function that implements the child task:
|
||||||
~~~
|
~~~
|
||||||
extern crate sync;
|
extern crate sync;
|
||||||
# fn main() {
|
# fn main() {
|
||||||
fn stringifier(channel: &sync::DuplexStream<~str, uint>) {
|
fn stringifier(channel: &sync::DuplexStream<~str, uint>) {
|
||||||
let mut value: uint;
|
let mut value: uint;
|
||||||
loop {
|
loop {
|
||||||
value = channel.recv();
|
value = channel.recv();
|
||||||
channel.send(value.to_str());
|
channel.send(value.to_str());
|
||||||
if value == 0 { break; }
|
if value == 0 { break; }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
# }
|
# }
|
||||||
~~~~
|
~~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue