auto merge of #13084 : Havvy/rust/master, r=alexcrichton
The indentation looks off in the guide because the main() function is not shown, so I'm dedenting the visible function.
This commit is contained in:
commit
6f430c4426
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;
|
||||
# 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; }
|
||||
}
|
||||
}
|
||||
# }
|
||||
~~~~
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue