1
0
mirror of https://github.com/google/comprehensive-rust.git synced 2025-04-24 16:42:36 +02:00

Fix typo in drop.md (#457)

This commit is contained in:
Adam MacBeth 2023-02-26 16:04:39 -06:00 committed by GitHub
parent 98ec5c65af
commit 4690f19e8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ fn main() {
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
the block, resulting in another call to `Drop::drop`, and a stack
overflow!