@@ -338,9 +338,11 @@ impl<T> Option<T> {
338338
339339 /// Returns the contained value or a default.
340340 ///
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
344346 ///
345347 /// # Examples
346348 ///
@@ -456,14 +458,15 @@ impl<T> Option<T> {
456458 /// [`Ok(v)`] and [`None`] to [`Err(err)`].
457459 ///
458460 /// 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
460462 /// lazily evaluated.
461463 ///
462464 /// [`Result<T, E>`]: ../../std/result/enum.Result.html
463465 /// [`Ok(v)`]: ../../std/result/enum.Result.html#variant.Ok
464466 /// [`Err(err)`]: ../../std/result/enum.Result.html#variant.Err
465467 /// [`None`]: #variant.None
466468 /// [`Some(v)`]: #variant.Some
469+ /// [`ok_or_else`]: #method.ok_or_else
467470 ///
468471 /// # Examples
469472 ///
@@ -618,9 +621,11 @@ impl<T> Option<T> {
618621 /// Returns the option if it contains a value, otherwise returns `optb`.
619622 ///
620623 /// 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
622625 /// lazily evaluated.
623626 ///
627+ /// [`or_else`]: #method.or_else
628+ ///
624629 /// # Examples
625630 ///
626631 /// ```
0 commit comments