about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRyan Scheel (Havvy) <ryan.havvy@gmail.com>2014-03-22 11:54:19 -0700
committerRyan Scheel (Havvy) <ryan.havvy@gmail.com>2014-03-22 11:54:19 -0700
commita73d2c70d4c24b85f3846d79b241ba1eb5f95e23 (patch)
tree3703d6a5bf06fee8f6004047989180676273afe3
parent403e8695712cd9779b9cc91c61e780d3bfb8212a (diff)
downloadrust-a73d2c70d4c24b85f3846d79b241ba1eb5f95e23.tar.gz
rust-a73d2c70d4c24b85f3846d79b241ba1eb5f95e23.zip
Unindent stringifier() in tasks guide
-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; }
     }
+}
 # }
 ~~~~