Skip to content

Commit f3d71be

Browse files
committed
Merge pull request #21214 from sleepynate/spacing-in-book
Fix commented graphs in src/doc/trpl/ownership.md Reviewed-by: huonw
2 parents ea9b00f + 3626a30 commit f3d71be

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
@@ -326,7 +326,7 @@ valid for. For example:
326326

327327
```rust
328328
fn main() {
329-
let y = &5; // -+ y goes into scope
329+
let y = &5; // -+ y goes into scope
330330
// |
331331
// stuff // |
332332
// |
@@ -341,7 +341,7 @@ struct Foo<'a> {
341341
}
342342

343343
fn main() {
344-
let y = &5; // -+ y goes into scope
344+
let y = &5; // -+ y goes into scope
345345
let f = Foo { x: y }; // -+ f goes into scope
346346
// stuff // |
347347
// |
@@ -360,7 +360,7 @@ fn main() {
360360
let x; // -+ x goes into scope
361361
// |
362362
{ // |
363-
let y = &5; // ---+ y goes into scope
363+
let y = &5; // ---+ y goes into scope
364364
let f = Foo { x: y }; // ---+ f goes into scope
365365
x = &f.x; // | | error here
366366
} // ---+ f and y go out of scope

0 commit comments

Comments
 (0)