We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 20d24d4 commit f023e42Copy full SHA for f023e42
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