about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2019-07-15 19:55:01 -0400
committerGitHub <noreply@github.com>2019-07-15 19:55:01 -0400
commitd6f0c0c47dbe3abd05e51daf4e470c81ed491334 (patch)
treece0da0e851a003a91cc3e82a814111cf11db4d92
parent99e7328d13df794069b8d37f45a35d88f4f2a5be (diff)
parent224757f912008b42d22e3543a668a5314b3836cd (diff)
downloadrust-d6f0c0c47dbe3abd05e51daf4e470c81ed491334.tar.gz
rust-d6f0c0c47dbe3abd05e51daf4e470c81ed491334.zip
Rollup merge of #62491 - GuillaumeGomez:fix-pin-urls-for-option, r=QuietMisdreavus
Fix Pin urls in Option documentation

Fixes the following situation:

![Screenshot from 2019-07-08 13-24-59](https://user-images.githubusercontent.com/3050060/60806822-55dfdc00-a184-11e9-9ee3-279e82fc92bd.png)

r? @QuietMisdreavus
-rw-r--r--src/libcore/option.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcore/option.rs b/src/libcore/option.rs
index 193cdb15b54..0b3ef41891b 100644
--- a/src/libcore/option.rs
+++ b/src/libcore/option.rs
@@ -291,6 +291,8 @@ impl<T> Option<T> {
 
 
     /// Converts from [`Pin`]`<&Option<T>>` to `Option<`[`Pin`]`<&T>>`.
+    ///
+    /// [`Pin`]: ../pin/struct.Pin.html
     #[inline]
     #[stable(feature = "pin", since = "1.33.0")]
     pub fn as_pin_ref<'a>(self: Pin<&'a Option<T>>) -> Option<Pin<&'a T>> {
@@ -300,6 +302,8 @@ impl<T> Option<T> {
     }
 
     /// Converts from [`Pin`]`<&mut Option<T>>` to `Option<`[`Pin`]`<&mut T>>`.
+    ///
+    /// [`Pin`]: ../pin/struct.Pin.html
     #[inline]
     #[stable(feature = "pin", since = "1.33.0")]
     pub fn as_pin_mut<'a>(self: Pin<&'a mut Option<T>>) -> Option<Pin<&'a mut T>> {