File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ impl<P: Deref> Pin<P> {
541
541
/// use std::pin::Pin;
542
542
///
543
543
/// fn move_pinned_rc<T>(mut x: Rc<T>) {
544
- /// let pinned = unsafe { Pin::new_unchecked(x. clone()) };
544
+ /// let pinned = unsafe { Pin::new_unchecked(Rc:: clone(&x )) };
545
545
/// {
546
546
/// let p: Pin<&T> = pinned.as_ref();
547
547
/// // This should mean the pointee can never move again.
Original file line number Diff line number Diff line change 76
76
//! fn main() {
77
77
//! let spinlock = Arc::new(AtomicUsize::new(1));
78
78
//!
79
- //! let spinlock_clone = spinlock. clone();
79
+ //! let spinlock_clone = Arc:: clone(&spinlock );
80
80
//! let thread = thread::spawn(move|| {
81
81
//! spinlock_clone.store(0, Ordering::SeqCst);
82
82
//! });
You can’t perform that action at this time.
0 commit comments