Skip to content

Commit 6b6858d

Browse files
Rollup merge of rust-lang#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
2 parents 67c38d9 + 224757f commit 6b6858d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/option.rs

+4
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ impl<T> Option<T> {
291291

292292

293293
/// Converts from [`Pin`]`<&Option<T>>` to `Option<`[`Pin`]`<&T>>`.
294+
///
295+
/// [`Pin`]: ../pin/struct.Pin.html
294296
#[inline]
295297
#[stable(feature = "pin", since = "1.33.0")]
296298
pub fn as_pin_ref<'a>(self: Pin<&'a Option<T>>) -> Option<Pin<&'a T>> {
@@ -300,6 +302,8 @@ impl<T> Option<T> {
300302
}
301303

302304
/// Converts from [`Pin`]`<&mut Option<T>>` to `Option<`[`Pin`]`<&mut T>>`.
305+
///
306+
/// [`Pin`]: ../pin/struct.Pin.html
303307
#[inline]
304308
#[stable(feature = "pin", since = "1.33.0")]
305309
pub fn as_pin_mut<'a>(self: Pin<&'a mut Option<T>>) -> Option<Pin<&'a mut T>> {

0 commit comments

Comments
 (0)