Skip to content

Commit a171a6b

Browse files
committed
Remove lies in comments.
1 parent b12708f commit a171a6b

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

library/std/src/sys_common/mutex.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,12 @@ impl Drop for StaticMutexGuard {
4646

4747
/// An OS-based mutual exclusion lock.
4848
///
49-
/// This mutex does *not* have a const constructor, cleans up its resources in
50-
/// its `Drop` implementation, may safely be moved (when not borrowed), and
51-
/// does not cause UB when used reentrantly.
49+
/// This mutex cleans up its resources in its `Drop` implementation, may safely
50+
/// be moved (when not borrowed), and does not cause UB when used reentrantly.
5251
///
5352
/// This mutex does not implement poisoning.
5453
///
55-
/// This is either a wrapper around `Box<imp::Mutex>` or `imp::Mutex`,
54+
/// This is either a wrapper around `LazyBox<imp::Mutex>` or `imp::Mutex`,
5655
/// depending on the platform. It is boxed on platforms where `imp::Mutex` may
5756
/// not be moved.
5857
pub struct MovableMutex(imp::MovableMutex);

library/std/src/sys_common/rwlock.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ impl Drop for StaticRwLockWriteGuard {
6262

6363
/// An OS-based reader-writer lock.
6464
///
65-
/// This rwlock does *not* have a const constructor, cleans up its resources in
66-
/// its `Drop` implementation and may safely be moved (when not borrowed).
65+
/// This rwlock cleans up its resources in its `Drop` implementation and may
66+
/// safely be moved (when not borrowed).
6767
///
6868
/// This rwlock does not implement poisoning.
6969
///
70-
/// This is either a wrapper around `Box<imp::RwLock>` or `imp::RwLock`,
70+
/// This is either a wrapper around `LazyBox<imp::RwLock>` or `imp::RwLock`,
7171
/// depending on the platform. It is boxed on platforms where `imp::RwLock` may
7272
/// not be moved.
7373
pub struct MovableRwLock(imp::MovableRwLock);

0 commit comments

Comments
 (0)