Merge pull request #275 from vlad-ion/patch-1

Fix small typo in the Drop Check chapter
pull/276/head
Eric Huss 4 years ago committed by GitHub
commit 5d7bec04c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -318,7 +318,7 @@ directly within it.
In all of the above cases where the `&'a u8` is accessed in the
destructor, adding the `#[may_dangle]`
attribute makes the type vulnerable to misuse that the borrower
attribute makes the type vulnerable to misuse that the borrow
checker will not catch, inviting havoc. It is better to avoid adding
the attribute.

Loading…
Cancel
Save