Skip to content

Commit

Permalink
Change lint doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancisMurillo committed Oct 2, 2020
1 parent 8fc9639 commit 868d40b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clippy_lints/src/mut_mutex_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ declare_clippy_lint! {
/// let value_mutex = Arc::get_mut(&mut value_rc).unwrap();
///
/// let mut value = value_mutex.lock().unwrap();
/// value += 1;
/// *value += 1;
/// ```
/// Use instead:
/// ```rust
Expand All @@ -32,7 +32,7 @@ declare_clippy_lint! {
/// let value_mutex = Arc::get_mut(&mut value_rc).unwrap();
///
/// let value = value_mutex.get_mut().unwrap();
/// value += 1;
/// *value += 1;
/// ```
pub MUT_MUTEX_LOCK,
correctness,
Expand Down

0 comments on commit 868d40b

Please sign in to comment.