Skip to content

Commit 224757f

Browse files
Fix Pin urls in Option documentation
1 parent db592f4 commit 224757f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/libcore/option.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,8 @@ impl<T> Option<T> {
290290

291291

292292
/// Converts from [`Pin`]`<&Option<T>>` to `Option<`[`Pin`]`<&T>>`.
293+
///
294+
/// [`Pin`]: ../pin/struct.Pin.html
293295
#[inline]
294296
#[stable(feature = "pin", since = "1.33.0")]
295297
pub fn as_pin_ref<'a>(self: Pin<&'a Option<T>>) -> Option<Pin<&'a T>> {
@@ -299,6 +301,8 @@ impl<T> Option<T> {
299301
}
300302

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

0 commit comments

Comments
 (0)