@@ -338,9 +338,11 @@ impl<T> Option<T> {
338
338
339
339
/// Returns the contained value or a default.
340
340
///
341
- /// Arguments passed to `unwrap_or` are eagerly evaluated; if you are passing
342
- /// the result of a function call, it is recommended to use `unwrap_or_else`,
343
- /// which is lazily evaluated.
341
+ /// Arguments passed to `unwrap_or` are eagerly evaluated; if you are passing
342
+ /// the result of a function call, it is recommended to use [`unwrap_or_else`],
343
+ /// which is lazily evaluated.
344
+ ///
345
+ /// [`unwrap_or_else`]: #method.unwrap_or_else
344
346
///
345
347
/// # Examples
346
348
///
@@ -456,14 +458,15 @@ impl<T> Option<T> {
456
458
/// [`Ok(v)`] and [`None`] to [`Err(err)`].
457
459
///
458
460
/// Arguments passed to `ok_or` are eagerly evaluated; if you are passing the
459
- /// result of a function call, it is recommended to use `ok_or_else`, which is
461
+ /// result of a function call, it is recommended to use [ `ok_or_else`] , which is
460
462
/// lazily evaluated.
461
463
///
462
464
/// [`Result<T, E>`]: ../../std/result/enum.Result.html
463
465
/// [`Ok(v)`]: ../../std/result/enum.Result.html#variant.Ok
464
466
/// [`Err(err)`]: ../../std/result/enum.Result.html#variant.Err
465
467
/// [`None`]: #variant.None
466
468
/// [`Some(v)`]: #variant.Some
469
+ /// [`ok_or_else`]: #method.ok_or_else
467
470
///
468
471
/// # Examples
469
472
///
@@ -618,9 +621,11 @@ impl<T> Option<T> {
618
621
/// Returns the option if it contains a value, otherwise returns `optb`.
619
622
///
620
623
/// Arguments passed to `or` are eagerly evaluated; if you are passing the
621
- /// result of a function call, it is recommended to use `or_else`, which is
624
+ /// result of a function call, it is recommended to use [ `or_else`] , which is
622
625
/// lazily evaluated.
623
626
///
627
+ /// [`or_else`]: #method.or_else
628
+ ///
624
629
/// # Examples
625
630
///
626
631
/// ```
0 commit comments