diff options
| author | Janggun Lee <leesisi123@naver.com> | 2024-03-04 22:15:05 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-04 22:15:05 +0900 |
| commit | 05e68facbb196126d01719111296f07bc264b915 (patch) | |
| tree | 451f7ea450a790b39802c54b722e8805c77d815b | |
| parent | 7606c13961ddc1174b70638e934df0439b7dc515 (diff) | |
| download | rust-05e68facbb196126d01719111296f07bc264b915.tar.gz rust-05e68facbb196126d01719111296f07bc264b915.zip | |
Fix comment in Atomic{Ptr,Bool}::as_ptr.
| -rw-r--r-- | library/core/src/sync/atomic.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/sync/atomic.rs b/library/core/src/sync/atomic.rs index 45193c11e1d..00e75ec9a25 100644 --- a/library/core/src/sync/atomic.rs +++ b/library/core/src/sync/atomic.rs @@ -1092,7 +1092,7 @@ impl AtomicBool { /// Returns a mutable pointer to the underlying [`bool`]. /// - /// Doing non-atomic reads and writes on the resulting integer can be a data race. + /// Doing non-atomic reads and writes on the resulting boolean can be a data race. /// This method is mostly useful for FFI, where the function signature may use /// `*mut bool` instead of `&AtomicBool`. /// @@ -2031,7 +2031,7 @@ impl<T> AtomicPtr<T> { /// Returns a mutable pointer to the underlying pointer. /// - /// Doing non-atomic reads and writes on the resulting integer can be a data race. + /// Doing non-atomic reads and writes on the resulting pointer can be a data race. /// This method is mostly useful for FFI, where the function signature may use /// `*mut *mut T` instead of `&AtomicPtr<T>`. /// |
