Skip to content

Commit 73616ce

Browse files
authored
Improve wording around drop
Technically box is still special so this is in the compiler, not in a Drop impl. Fixes #2260
1 parent e4018f2 commit 73616ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch15-03-drop.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ provide an implementation for the `Drop` trait on any type, and the code you
66
specify can be used to release resources like files or network connections.
77
We’re introducing `Drop` in the context of smart pointers because the
88
functionality of the `Drop` trait is almost always used when implementing a
9-
smart pointer. For example, `Box<T>` customizes `Drop` to deallocate the space
9+
smart pointer. For example, when a `Box<T>` is dropped it will deallocate the space
1010
on the heap that the box points to.
1111

1212
In some languages, the programmer must call code to free memory or resources

0 commit comments

Comments
 (0)