Skip to content

Commit

Permalink
Rollup merge of rust-lang#5726 - sozysozbot:patch-1, r=flip1995
Browse files Browse the repository at this point in the history
Fix typo

changelog: extending it's lifetime -> extending its lifetime
  • Loading branch information
flip1995 authored Jun 23, 2020
2 parents f562117 + f3a40f5 commit e4cbd1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_lints/src/let_underscore.rs
Original file line number Diff line number Diff line change
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 e4cbd1d

Please sign in to comment.