Skip to content

Commit 3626a30

Browse files
committed
Fix commented graphs in src/doc/trpl/ownership.md
1 parent 9ade482 commit 3626a30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/trpl/ownership.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ valid for. For example:
310310

311311
```rust
312312
fn main() {
313-
let y = &5; // -+ y goes into scope
313+
let y = &5; // -+ y goes into scope
314314
// |
315315
// stuff // |
316316
// |
@@ -325,7 +325,7 @@ struct Foo<'a> {
325325
}
326326

327327
fn main() {
328-
let y = &5; // -+ y goes into scope
328+
let y = &5; // -+ y goes into scope
329329
let f = Foo { x: y }; // -+ f goes into scope
330330
// stuff // |
331331
// |
@@ -344,7 +344,7 @@ fn main() {
344344
let x; // -+ x goes into scope
345345
// |
346346
{ // |
347-
let y = &5; // ---+ y goes into scope
347+
let y = &5; // ---+ y goes into scope
348348
let f = Foo { x: y }; // ---+ f goes into scope
349349
x = &f.x; // | | error here
350350
} // ---+ f and y go out of scope

0 commit comments

Comments
 (0)