]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys_common/mutex.rs
Rollup merge of #98334 - JohnTitor:issue-73727, r=compiler-errors
[rust.git] / library / std / src / sys_common / mutex.rs
index 81eefa1133fa5767e90f2431b89eac72a3e063da..48479f5bdb3f7084dc3a98f356f0752304b01f82 100644 (file)
@@ -46,13 +46,12 @@ fn drop(&mut self) {
 
 /// An OS-based mutual exclusion lock.
 ///
-/// This mutex does *not* have a const constructor, cleans up its resources in
-/// its `Drop` implementation, may safely be moved (when not borrowed), and
-/// does not cause UB when used reentrantly.
+/// This mutex cleans up its resources in its `Drop` implementation, may safely
+/// be moved (when not borrowed), and does not cause UB when used reentrantly.
 ///
 /// This mutex does not implement poisoning.
 ///
-/// This is either a wrapper around `Box<imp::Mutex>` or `imp::Mutex`,
+/// This is either a wrapper around `LazyBox<imp::Mutex>` or `imp::Mutex`,
 /// depending on the platform. It is boxed on platforms where `imp::Mutex` may
 /// not be moved.
 pub struct MovableMutex(imp::MovableMutex);