Skip to content

Commit 05e68fa

Browse files
authored
Fix comment in Atomic{Ptr,Bool}::as_ptr.
1 parent 7606c13 commit 05e68fa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/sync/atomic.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ impl AtomicBool {
10921092

10931093
/// Returns a mutable pointer to the underlying [`bool`].
10941094
///
1095-
/// Doing non-atomic reads and writes on the resulting integer can be a data race.
1095+
/// Doing non-atomic reads and writes on the resulting boolean can be a data race.
10961096
/// This method is mostly useful for FFI, where the function signature may use
10971097
/// `*mut bool` instead of `&AtomicBool`.
10981098
///
@@ -2031,7 +2031,7 @@ impl<T> AtomicPtr<T> {
20312031

20322032
/// Returns a mutable pointer to the underlying pointer.
20332033
///
2034-
/// Doing non-atomic reads and writes on the resulting integer can be a data race.
2034+
/// Doing non-atomic reads and writes on the resulting pointer can be a data race.
20352035
/// This method is mostly useful for FFI, where the function signature may use
20362036
/// `*mut *mut T` instead of `&AtomicPtr<T>`.
20372037
///

0 commit comments

Comments
 (0)