Remove lies in comments.

This commit is contained in:
Mara Bos 2022-06-20 22:59:48 +02:00
parent b12708f7f4
commit a171a6b7ec
2 changed files with 6 additions and 7 deletions

View File

@ -46,13 +46,12 @@ impl Drop for StaticMutexGuard {
/// An OS-based mutual exclusion lock. /// An OS-based mutual exclusion lock.
/// ///
/// This mutex does *not* have a const constructor, cleans up its resources in /// This mutex cleans up its resources in its `Drop` implementation, may safely
/// its `Drop` implementation, may safely be moved (when not borrowed), and /// be moved (when not borrowed), and does not cause UB when used reentrantly.
/// does not cause UB when used reentrantly.
/// ///
/// This mutex does not implement poisoning. /// 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 /// depending on the platform. It is boxed on platforms where `imp::Mutex` may
/// not be moved. /// not be moved.
pub struct MovableMutex(imp::MovableMutex); pub struct MovableMutex(imp::MovableMutex);

View File

@ -62,12 +62,12 @@ impl Drop for StaticRwLockWriteGuard {
/// An OS-based reader-writer lock. /// An OS-based reader-writer lock.
/// ///
/// This rwlock does *not* have a const constructor, cleans up its resources in /// This rwlock cleans up its resources in its `Drop` implementation and may
/// its `Drop` implementation and may safely be moved (when not borrowed). /// safely be moved (when not borrowed).
/// ///
/// This rwlock does not implement poisoning. /// This rwlock does not implement poisoning.
/// ///
/// This is either a wrapper around `Box<imp::RwLock>` or `imp::RwLock`, /// This is either a wrapper around `LazyBox<imp::RwLock>` or `imp::RwLock`,
/// depending on the platform. It is boxed on platforms where `imp::RwLock` may /// depending on the platform. It is boxed on platforms where `imp::RwLock` may
/// not be moved. /// not be moved.
pub struct MovableRwLock(imp::MovableRwLock); pub struct MovableRwLock(imp::MovableRwLock);