]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/sync/atomic.rs
Rollup merge of #89869 - kpreid:from-doc, r=yaahc
[rust.git] / library / core / src / sync / atomic.rs
index 792016902aebe925b42f2e11bd7682f9c59263c3..9ee88dd601493a03f910e583dd674801a0bf811c 100644 (file)
@@ -1295,6 +1295,7 @@ fn from(b: bool) -> Self {
 #[stable(feature = "atomic_from", since = "1.23.0")]
 #[rustc_const_unstable(feature = "const_convert", issue = "88674")]
 impl<T> const From<*mut T> for AtomicPtr<T> {
+    /// Converts a `*mut T` into an `AtomicPtr<T>`.
     #[inline]
     fn from(p: *mut T) -> Self {
         Self::new(p)