auto merge of #14324 : zecozephyr/rust/docfix, r=luqmana
This commit is contained in:
commit
1edb0e5364
1 changed files with 1 additions and 1 deletions
|
@ -944,7 +944,7 @@ struct Foo { x: int, y: Box<int> }
|
||||||
// `a` is the owner of the struct, and thus the owner of the struct's fields
|
// `a` is the owner of the struct, and thus the owner of the struct's fields
|
||||||
let a = Foo { x: 5, y: box 10 };
|
let a = Foo { x: 5, y: box 10 };
|
||||||
}
|
}
|
||||||
// when `a` goes out of scope, the destructor for the `~int` in the struct's
|
// when `a` goes out of scope, the destructor for the `Box<int>` in the struct's
|
||||||
// field is called
|
// field is called
|
||||||
|
|
||||||
// `b` is mutable, and the mutability is inherited by the objects it owns
|
// `b` is mutable, and the mutability is inherited by the objects it owns
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue