diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-03-04 22:16:34 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-04 22:16:34 +0100 |
| commit | c83ca5ba9a2da60664492be8caab367974fea256 (patch) | |
| tree | 8e26da93b35c17f4a4f849d4c9ac84d83dfd0bb5 | |
| parent | 13b971209a27127a0446e015edb033f903da44e4 (diff) | |
| parent | 05e68facbb196126d01719111296f07bc264b915 (diff) | |
| download | rust-c83ca5ba9a2da60664492be8caab367974fea256.tar.gz rust-c83ca5ba9a2da60664492be8caab367974fea256.zip | |
Rollup merge of #121977 - Lee-Janggun:master, r=WaffleLapkin
Doc: Fix incorrect reference to integer in Atomic{Ptr,Bool}::as_ptr.
I am assuming "resulting integer" is an error, since we are talking about pointers and booleans here. Seems like it was missed while copy & pasting the docs from the integer versions. I also checked the rest of the docs, and this was the only mention of integers.
| -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>`. /// |
