Skip to content

Commit 7f0f8ac

Browse files
authored
Fix missing line comment in drop_ref example
1 parent 8ad5cb6 commit 7f0f8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/drop_forget_ref.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use utils::{is_copy, match_def_path, opt_def_id, paths, span_note_and_lint};
1717
/// ```rust
1818
/// let mut lock_guard = mutex.lock();
1919
/// std::mem::drop(&lock_guard) // Should have been drop(lock_guard), mutex
20-
/// still locked
20+
/// // still locked
2121
/// operation_that_requires_mutex_to_be_unlocked();
2222
/// ```
2323
declare_clippy_lint! {

0 commit comments

Comments
 (0)