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 @@ -4039,19 +4039,19 @@ initialized; this is enforced by the compiler.
4039
4039
4040
4040
### Boxes
4041
4041
4042
- An _ box_ is a reference to a heap allocation holding another value, which is
4042
+ A _ box_ is a reference to a heap allocation holding another value, which is
4043
4043
constructed by the prefix operator ` box ` . When the standard library is in use,
4044
- the type of an box is ` std::owned::Box<T> ` .
4044
+ the type of a box is ` std::owned::Box<T> ` .
4045
4045
4046
- An example of an box type and value:
4046
+ An example of a box type and value:
4047
4047
4048
4048
```
4049
4049
let x: Box<int> = box 10;
4050
4050
```
4051
4051
4052
- Box values exist in 1:1 correspondence with their heap allocation, copying an
4052
+ Box values exist in 1:1 correspondence with their heap allocation, copying a
4053
4053
box value makes a shallow copy of the pointer. Rust will consider a shallow
4054
- copy of an box to move ownership of the value. After a value has been moved,
4054
+ copy of a box to move ownership of the value. After a value has been moved,
4055
4055
the source location cannot be used unless it is reinitialized.
4056
4056
4057
4057
```
You can’t perform that action at this time.
0 commit comments