We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ade482 commit 3626a30Copy full SHA for 3626a30
src/doc/trpl/ownership.md
@@ -310,7 +310,7 @@ valid for. For example:
310
311
```rust
312
fn main() {
313
- let y = &5; // -+ y goes into scope
+ let y = &5; // -+ y goes into scope
314
// |
315
// stuff // |
316
@@ -325,7 +325,7 @@ struct Foo<'a> {
325
}
326
327
328
329
let f = Foo { x: y }; // -+ f goes into scope
330
331
@@ -344,7 +344,7 @@ fn main() {
344
let x; // -+ x goes into scope
345
346
{ // |
347
- let y = &5; // ---+ y goes into scope
+ let y = &5; // ---+ y goes into scope
348
let f = Foo { x: y }; // ---+ f goes into scope
349
x = &f.x; // | | error here
350
} // ---+ f and y go out of scope
0 commit comments