Skip to content

Commit 6f430c4

Browse files
committed
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.
2 parents 7e7a5e3 + a73d2c7 commit 6f430c4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/doc/guide-tasks.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -493,14 +493,14 @@ Here is the function that implements the child task:
493493
~~~
494494
extern crate sync;
495495
# fn main() {
496-
fn stringifier(channel: &sync::DuplexStream<~str, uint>) {
497-
let mut value: uint;
498-
loop {
499-
value = channel.recv();
500-
channel.send(value.to_str());
501-
if value == 0 { break; }
502-
}
496+
fn stringifier(channel: &sync::DuplexStream<~str, uint>) {
497+
let mut value: uint;
498+
loop {
499+
value = channel.recv();
500+
channel.send(value.to_str());
501+
if value == 0 { break; }
503502
}
503+
}
504504
# }
505505
~~~~
506506

0 commit comments

Comments
 (0)