mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Fix missing line comment in drop_ref example
This commit is contained in:
parent
8ad5cb6170
commit
7f0f8acb42
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ use utils::{is_copy, match_def_path, opt_def_id, paths, span_note_and_lint};
|
||||||
/// ```rust
|
/// ```rust
|
||||||
/// let mut lock_guard = mutex.lock();
|
/// let mut lock_guard = mutex.lock();
|
||||||
/// std::mem::drop(&lock_guard) // Should have been drop(lock_guard), mutex
|
/// std::mem::drop(&lock_guard) // Should have been drop(lock_guard), mutex
|
||||||
/// still locked
|
/// // still locked
|
||||||
/// operation_that_requires_mutex_to_be_unlocked();
|
/// operation_that_requires_mutex_to_be_unlocked();
|
||||||
/// ```
|
/// ```
|
||||||
declare_clippy_lint! {
|
declare_clippy_lint! {
|
||||||
|
|
Loading…
Reference in a new issue