We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f673d0c commit b0a1973Copy full SHA for b0a1973
library/std/src/sync/nonpoison/mutex.rs
@@ -37,7 +37,6 @@ use crate::sys::sync as sys;
37
/// // The shared state can only be accessed once the lock is held.
38
/// // Our non-atomic increment is safe because we're the only thread
39
/// // which can access the shared state when the lock is held.
40
-///
41
/// let mut data = data.lock();
42
/// *data += 1;
43
/// if *data == N {
0 commit comments