diff --git a/src/libcore/option.rs b/src/libcore/option.rs index 29169951e46..142df9ba7c1 100644 --- a/src/libcore/option.rs +++ b/src/libcore/option.rs @@ -290,6 +290,8 @@ pub fn as_mut(&mut self) -> Option<&mut T> { /// Converts from [`Pin`]`<&Option>` 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>) -> Option> { @@ -299,6 +301,8 @@ pub fn as_pin_ref<'a>(self: Pin<&'a Option>) -> Option> { } /// Converts from [`Pin`]`<&mut Option>` 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>) -> Option> {