Skip to content

Commit 3637c44

Browse files
authored
Fix typo in box.md (#2362)
1 parent 5aa08d4 commit 3637c44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/smart-pointers/box.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ fn main() {
6868
- `Box` is like `std::unique_ptr` in C++, except that it's guaranteed to be not
6969
null.
7070
- 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.
71+
- have a type whose size can't be known at compile time, but the Rust compiler
72+
wants to know an exact size.
7373
- want to transfer ownership of a large amount of data. To avoid copying large
7474
amounts of data on the stack, instead store the data on the heap in a `Box`
7575
so only the pointer is moved.

0 commit comments

Comments
 (0)