diff options
| author | bors <bors@rust-lang.org> | 2014-03-22 14:16:50 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2014-03-22 14:16:50 -0700 |
| commit | 6f430c44262cc4965ece75835204ef8b60b4d604 (patch) | |
| tree | 63aeef7a51c7544d149200e63a27a4cf1cbbc863 | |
| parent | 7e7a5e3d3eabe0ee46474b0eb701c159a45b490f (diff) | |
| parent | a73d2c70d4c24b85f3846d79b241ba1eb5f95e23 (diff) | |
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.
| -rw-r--r-- | src/doc/guide-tasks.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/doc/guide-tasks.md b/src/doc/guide-tasks.md index 969ade289d3..9f8e5c727bd 100644 --- a/src/doc/guide-tasks.md +++ b/src/doc/guide-tasks.md @@ -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; } } +} # } ~~~~ |
