Fix comment in Atomic{Ptr,Bool}::as_ptr.

This commit is contained in:
Janggun Lee 2024-03-04 22:15:05 +09:00 committed by GitHub
parent 7606c13961
commit 05e68facbb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1092,7 +1092,7 @@ pub fn fetch_not(&self, order: Ordering) -> bool {
/// Returns a mutable pointer to the underlying [`bool`]. /// 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 /// This method is mostly useful for FFI, where the function signature may use
/// `*mut bool` instead of `&AtomicBool`. /// `*mut bool` instead of `&AtomicBool`.
/// ///
@ -2031,7 +2031,7 @@ pub fn fetch_xor(&self, val: usize, order: Ordering) -> *mut T {
/// Returns a mutable pointer to the underlying pointer. /// 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 /// This method is mostly useful for FFI, where the function signature may use
/// `*mut *mut T` instead of `&AtomicPtr<T>`. /// `*mut *mut T` instead of `&AtomicPtr<T>`.
/// ///