Skip to content

Commit

Permalink
Fix commented graphs in src/doc/trpl/ownership.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sleepynate committed Jan 15, 2015
1 parent 9ade482 commit 3626a30
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/trpl/ownership.md
Expand Up @@ -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 // |
// |
Expand All @@ -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 // |
// |
Expand All @@ -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
Expand Down

0 comments on commit 3626a30

Please sign in to comment.