We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aa08d4 commit 3637c44Copy full SHA for 3637c44
src/smart-pointers/box.md
@@ -68,8 +68,8 @@ fn main() {
68
- `Box` is like `std::unique_ptr` in C++, except that it's guaranteed to be not
69
null.
70
- A `Box` can be useful when you:
71
- - have a type whose size that can't be known at compile time, but the Rust
72
- compiler wants to know an exact size.
+ - have a type whose size can't be known at compile time, but the Rust compiler
+ wants to know an exact size.
73
- want to transfer ownership of a large amount of data. To avoid copying large
74
amounts of data on the stack, instead store the data on the heap in a `Box`
75
so only the pointer is moved.
0 commit comments