Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
extending it's lifetime -> extending its lifetime
  • Loading branch information
sozysozbot committed Jun 17, 2020
1 parent 7427065 commit f3a40f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/let_underscore.rs
Expand Up @@ -35,7 +35,7 @@ declare_clippy_lint! {
/// **What it does:** Checks for `let _ = sync_lock`
///
/// **Why is this bad?** This statement immediately drops the lock instead of
/// extending it's lifetime to the end of the scope, which is often not intended.
/// extending its lifetime to the end of the scope, which is often not intended.
/// To extend lock lifetime to the end of the scope, use an underscore-prefixed
/// name instead (i.e. _lock). If you want to explicitly drop the lock,
/// `std::mem::drop` conveys your intention better and is less error-prone.
Expand Down

0 comments on commit f3a40f5

Please sign in to comment.