diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs index 0b9c733f7fead..64659779b2d73 100644 --- a/library/core/src/pin.rs +++ b/library/core/src/pin.rs @@ -6,10 +6,10 @@ //! as moving an object with pointers to itself will invalidate them, which could cause undefined //! behavior. //! -//! At a high level, a [`Pin
`] ensures that the pointee of any pointer type +//! At a high level, a [`Pin
`] ensures that the pointer of any pointer type
//! `P` has a stable location in memory, meaning it cannot be moved elsewhere
//! and its memory cannot be deallocated until it gets dropped. We say that the
-//! pointee is "pinned". Things get more subtle when discussing types that
+//! pointer is "pinned". Things get more subtle when discussing types that
//! combine pinned with non-pinned data; [see below](#projections-and-structural-pinning)
//! for more details.
//!
@@ -527,7 +527,7 @@ impl {
/// fn move_pinned_ref {
/// let pinned = unsafe { Pin::new_unchecked(Rc::clone(&x)) };
/// {
/// let p: Pin<&T> = pinned.as_ref();
- /// // This should mean the pointee can never move again.
+ /// // This should mean the pointer can never move again.
/// }
/// drop(pinned);
/// let content = Rc::get_mut(&mut x).unwrap();
@@ -569,7 +569,7 @@ impl {
///
/// This is a generic method to go from `&Pin {
///
/// This is a generic method to go from `&mut Pin