Fix comment in Atomic{Ptr,Bool}::as_ptr. · rust-lang/rust@05e68fa (original) (raw)

Original file line number Diff line number Diff line change
@@ -1092,7 +1092,7 @@ impl AtomicBool {
1092 1092
1093 1093 /// Returns a mutable pointer to the underlying [`bool`].
1094 1094 ///
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.
1096 1096 /// This method is mostly useful for FFI, where the function signature may use
1097 1097 /// `*mut bool` instead of `&AtomicBool`.
1098 1098 ///
@@ -2031,7 +2031,7 @@ impl AtomicPtr {
2031 2031
2032 2032 /// Returns a mutable pointer to the underlying pointer.
2033 2033 ///
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.
2035 2035 /// This method is mostly useful for FFI, where the function signature may use
2036 2036 /// `*mut *mut T` instead of `&AtomicPtr`.
2037 2037 ///