]> git.lizzy.rs Git - rust.git/commitdiff
Unindent stringifier() in tasks guide
authorRyan Scheel (Havvy) <ryan.havvy@gmail.com>
Sat, 22 Mar 2014 18:54:19 +0000 (11:54 -0700)
committerRyan Scheel (Havvy) <ryan.havvy@gmail.com>
Sat, 22 Mar 2014 18:54:19 +0000 (11:54 -0700)
src/doc/guide-tasks.md

index 969ade289d394e1f91c4da99dbc82a90e425606c..9f8e5c727bd25a053004885e7a6b26096f3a34ad 100644 (file)
@@ -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; }
     }
+}
 # }
 ~~~~