We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ea9b00f + 3626a30 commit f3d71beCopy full SHA for f3d71be
src/doc/trpl/ownership.md
@@ -326,7 +326,7 @@ valid for. For example:
326
327
```rust
328
fn main() {
329
- let y = &5; // -+ y goes into scope
+ let y = &5; // -+ y goes into scope
330
// |
331
// stuff // |
332
@@ -341,7 +341,7 @@ struct Foo<'a> {
341
}
342
343
344
345
let f = Foo { x: y }; // -+ f goes into scope
346
347
@@ -360,7 +360,7 @@ fn main() {
360
let x; // -+ x goes into scope
361
362
{ // |
363
- let y = &5; // ---+ y goes into scope
+ let y = &5; // ---+ y goes into scope
364
let f = Foo { x: y }; // ---+ f goes into scope
365
x = &f.x; // | | error here
366
} // ---+ f and y go out of scope
0 commit comments