]> git.lizzy.rs Git - rust.git/commitdiff
Merge pull request #21214 from sleepynate/spacing-in-book
authorbors <bors@rust-lang.org>
Fri, 16 Jan 2015 06:31:03 +0000 (06:31 +0000)
committerbors <bors@rust-lang.org>
Fri, 16 Jan 2015 06:31:03 +0000 (06:31 +0000)
Fix commented graphs in src/doc/trpl/ownership.md

Reviewed-by: huonw
src/doc/trpl/ownership.md

index 011746cf5b11799266927450c787111e970ad9c6..7a397ce535470bf1ff2039fe896648368ff10e50 100644 (file)
@@ -326,7 +326,7 @@ valid for. For example:
 
 ```rust
 fn main() {
-    let y = &5;    // -+ y goes into scope
+    let y = &5;     // -+ y goes into scope
                     //  |
     // stuff        //  |
                     //  |
@@ -341,7 +341,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              //  |
                           //  |
@@ -360,7 +360,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