Skip to content

Commit

Permalink
minor change to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aandreba committed Dec 24, 2024
1 parent 20d24d4 commit f023e42
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/std/src/sync/nonpoison/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ use crate::sys::sync as sys;
/// // The shared state can only be accessed once the lock is held.
/// // Our non-atomic increment is safe because we're the only thread
/// // which can access the shared state when the lock is held.
///
/// let mut data = data.lock();
/// *data += 1;
/// if *data == N {
Expand Down

0 comments on commit f023e42

Please sign in to comment.