Rollup merge of #99094 - AldaronLau:atomic-ptr-extra-space, r=Dylan-DPC

Remove extra space in AtomicPtr::new docs
This commit is contained in:
Matthias Krüger 2022-07-11 00:33:48 +02:00 committed by GitHub
commit 342b666d59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -991,7 +991,7 @@ impl<T> AtomicPtr<T> {
/// use std::sync::atomic::AtomicPtr;
///
/// let ptr = &mut 5;
/// let atomic_ptr = AtomicPtr::new(ptr);
/// let atomic_ptr = AtomicPtr::new(ptr);
/// ```
#[inline]
#[stable(feature = "rust1", since = "1.0.0")]