From b825a46d1559616e98121fedc2249684d9098e3c Mon Sep 17 00:00:00 2001 From: Vlad Ion Date: Thu, 10 Jun 2021 15:46:00 +0100 Subject: [PATCH] Fix small typo in the Drop Check chapter --- src/dropck.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dropck.md b/src/dropck.md index 41c5afc..ef10ba2 100644 --- a/src/dropck.md +++ b/src/dropck.md @@ -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.