File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -324,7 +324,7 @@ fn main() {
324
324
let f = Foo { x : y }; // -+ f goes into scope
325
325
// stuff // |
326
326
// |
327
- } // -+ f & y go out of scope
327
+ } // -+ f and y go out of scope
328
328
```
329
329
330
330
Our ` f ` lives within the scope of ` y ` , so everything works. What if it didn't?
@@ -342,7 +342,7 @@ fn main() {
342
342
let y = &5i; // ---+ y goes into scope
343
343
let f = Foo { x: y }; // ---+ f goes into scope
344
344
x = &f.x; // | | error here
345
- } // ---+ f & y go out of scope
345
+ } // ---+ f and y go out of scope
346
346
// |
347
347
println!("{}", x); // |
348
348
} // -+ x goes out of scope
@@ -395,7 +395,7 @@ struct Wheel {
395
395
}
396
396
397
397
fn main() {
398
- let car = Car { name: "DeLorian ".to_string() };
398
+ let car = Car { name: "DeLorean ".to_string() };
399
399
400
400
for _ in range(0u, 4) {
401
401
Wheel { size: 360, owner: car };
@@ -431,7 +431,7 @@ struct Wheel {
431
431
}
432
432
433
433
fn main () {
434
- let car = Car { name : " DeLorian " . to_string () };
434
+ let car = Car { name : " DeLorean " . to_string () };
435
435
436
436
let car_owner = Rc :: new (car );
437
437
You can’t perform that action at this time.
0 commit comments