mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-04-25 00:50:26 +02:00
Fix typo in drop.md (#457)
This commit is contained in:
parent
98ec5c65af
commit
4690f19e8c
@ -33,7 +33,7 @@ fn main() {
|
|||||||
|
|
||||||
Discussion points:
|
Discussion points:
|
||||||
|
|
||||||
* Why does not `Drop::drop` take `self`?
|
* Why doesn't `Drop::drop` take `self`?
|
||||||
* Short-answer: If it did, `std::mem::drop` would be called at the end of
|
* Short-answer: If it did, `std::mem::drop` would be called at the end of
|
||||||
the block, resulting in another call to `Drop::drop`, and a stack
|
the block, resulting in another call to `Drop::drop`, and a stack
|
||||||
overflow!
|
overflow!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user