about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-02-21 15:30:31 +0100
committerRalf Jung <post@ralfj.de>2019-02-21 15:30:31 +0100
commit2db0e0d65c0215b1a5d232860c0c2ad3ec8c37d1 (patch)
tree74ed8a5ab22557da5fa436591920326d2455c701 /src
parente61a8a94f7762abcd2e77a3108f766d2f5bb1185 (diff)
tweaks and fix weird space
Diffstat (limited to 'src')
-rw-r--r--src/libcore/marker.rs2
-rw-r--r--src/libcore/pin.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs
index 91fd41e97b3..255d09a0417 100644
--- a/src/libcore/marker.rs
+++ b/src/libcore/marker.rs
@@ -633,7 +633,7 @@ unsafe impl<T: ?Sized> Freeze for &mut T {}
 /// This trait is automatically implemented for almost every type.
 ///
 /// [`mem::replace`]: ../../std/mem/fn.replace.html
- /// [`Pin<P>`]: ../pin/struct.Pin.html
+/// [`Pin<P>`]: ../pin/struct.Pin.html
 /// [`pin module`]: ../../std/pin/index.html
 #[stable(feature = "pin", since = "1.33.0")]
 #[cfg_attr(not(stage0), lang = "unpin")]
diff --git a/src/libcore/pin.rs b/src/libcore/pin.rs
index 9ce85309565..e045702bca2 100644
--- a/src/libcore/pin.rs
+++ b/src/libcore/pin.rs
@@ -53,7 +53,7 @@
 //! cancels the effect of [`Pin<P>`]. For `T: Unpin`, `Pin<Box<T>>` and `Box<T>` function
 //! identically, as do `Pin<&mut T>` and `&mut T`.
 //!
-//! Note that pinning and `Unpin` only affect the pointed-to type, not the pointer
+//! Note that pinning and `Unpin` only affect the pointed-to type `P::Target`, not the pointer
 //! type `P` itself that got wrapped in `Pin<P>`. For example, whether or not `Box<T>` is
 //! `Unpin` has no effect on the behavior of `Pin<Box<T>>` (here, `T` is the
 //! pointed-to type).