about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/doc/guide-tasks.md14
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; }
     }
+}
 # }
 ~~~~