diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2019-07-15 19:55:01 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-15 19:55:01 -0400 |
| commit | d6f0c0c47dbe3abd05e51daf4e470c81ed491334 (patch) | |
| tree | ce0da0e851a003a91cc3e82a814111cf11db4d92 | |
| parent | 99e7328d13df794069b8d37f45a35d88f4f2a5be (diff) | |
| parent | 224757f912008b42d22e3543a668a5314b3836cd (diff) | |
| download | rust-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:  r? @QuietMisdreavus
| -rw-r--r-- | src/libcore/option.rs | 4 |
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>> { |
