]> git.lizzy.rs Git - rust.git/commitdiff
Fix commented graphs in src/doc/trpl/ownership.md
authornathan dotz <nathan.dotz@gmail.com>
Thu, 15 Jan 2015 23:15:18 +0000 (18:15 -0500)
committernathan dotz <nathan.dotz@gmail.com>
Thu, 15 Jan 2015 23:15:18 +0000 (18:15 -0500)
src/doc/trpl/ownership.md

index 8e5a757e1bda7e34dd6b4026bceca9a7b7a91ab5..319b45c5273c7b732c958136e087c28f281028e7 100644 (file)
@@ -310,7 +310,7 @@ valid for. For example:
 
 ```rust
 fn main() {
-    let y = &5;    // -+ y goes into scope
+    let y = &5;     // -+ y goes into scope
                     //  |
     // stuff        //  |
                     //  |
@@ -325,7 +325,7 @@ struct Foo<'a> {
 }
 
 fn main() {
-    let y = &5;          // -+ y goes into scope
+    let y = &5;           // -+ y goes into scope
     let f = Foo { x: y }; // -+ f goes into scope
     // stuff              //  |
                           //  |
@@ -344,7 +344,7 @@ fn main() {
     let x;                    // -+ x goes into scope
                               //  |
     {                         //  |
-        let y = &5;          // ---+ y goes into scope
+        let y = &5;           // ---+ y goes into scope
         let f = Foo { x: y }; // ---+ f goes into scope
         x = &f.x;             //  | | error here
     }                         // ---+ f and y go out of scope