Skip to content

Commit

Permalink
Merge pull request #2049 from DieBauer/patch-1
Browse files Browse the repository at this point in the history
Update ch15-03-drop.md
  • Loading branch information
steveklabnik authored Oct 24, 2019
2 parents 6f8820d + 7882e24 commit 67c5a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch15-03-drop.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ functionality. Disabling `drop` isn’t usually necessary; the whole point of th
`Drop` trait is that it’s taken care of automatically. Occasionally, however,
you might want to clean up a value early. One example is when using smart
pointers that manage locks: you might want to force the `drop` method that
releases the lock to run so other code in the same scope can acquire the lock.
releases the lock so that other code in the same scope can acquire the lock.
Rust doesn’t let you call the `Drop` trait’s `drop` method manually; instead
you have to call the `std::mem::drop` function provided by the standard library
if you want to force a value to be dropped before the end of its scope.
Expand Down

0 comments on commit 67c5a6e

Please sign in to comment.