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