File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4045,19 +4045,19 @@ initialized; this is enforced by the compiler.
40454045
40464046### Boxes
40474047
4048- An _ box_ is a reference to a heap allocation holding another value, which is
4048+ A _ box_ is a reference to a heap allocation holding another value, which is
40494049constructed by the prefix operator ` box ` . When the standard library is in use,
4050- the type of an box is ` std::owned::Box<T> ` .
4050+ the type of a box is ` std::owned::Box<T> ` .
40514051
4052- An example of an box type and value:
4052+ An example of a box type and value:
40534053
40544054```
40554055let x: Box<int> = box 10;
40564056```
40574057
4058- Box values exist in 1:1 correspondence with their heap allocation, copying an
4058+ Box values exist in 1:1 correspondence with their heap allocation, copying a
40594059box value makes a shallow copy of the pointer. Rust will consider a shallow
4060- copy of an box to move ownership of the value. After a value has been moved,
4060+ copy of a box to move ownership of the value. After a value has been moved,
40614061the source location cannot be used unless it is reinitialized.
40624062
40634063```
You can’t perform that action at this time.
0 commit comments