Fix missing line comment in drop_ref example

This commit is contained in:
Nathan 2018-04-27 02:39:14 -04:00 committed by GitHub
parent 8ad5cb6170
commit 7f0f8acb42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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! {