@@ -407,9 +407,7 @@ impl<T> Option<T> {
407
407
}
408
408
409
409
/// Applies a function to the contained value (if any),
410
- /// or returns a [`default`][] (if not).
411
- ///
412
- /// [`default`]: ../default/trait.Default.html#tymethod.default
410
+ /// or returns the provided default (if not).
413
411
///
414
412
/// # Examples
415
413
///
@@ -430,9 +428,7 @@ impl<T> Option<T> {
430
428
}
431
429
432
430
/// Applies a function to the contained value (if any),
433
- /// or computes a [`default`][] (if not).
434
- ///
435
- /// [`default`]: ../default/trait.Default.html#tymethod.default
431
+ /// or computes a default (if not).
436
432
///
437
433
/// # Examples
438
434
///
@@ -850,7 +846,7 @@ impl<T: Default> Option<T> {
850
846
/// Returns the contained value or a default
851
847
///
852
848
/// Consumes the `self` argument then, if [`Some`], returns the contained
853
- /// value, otherwise if [`None`], returns the default value for that
849
+ /// value, otherwise if [`None`], returns the [ default value] for that
854
850
/// type.
855
851
///
856
852
/// # Examples
@@ -872,6 +868,7 @@ impl<T: Default> Option<T> {
872
868
///
873
869
/// [`Some`]: #variant.Some
874
870
/// [`None`]: #variant.None
871
+ /// [default value]: ../default/trait.Default.html#tymethod.default
875
872
/// [`parse`]: ../../std/primitive.str.html#method.parse
876
873
/// [`FromStr`]: ../../std/str/trait.FromStr.html
877
874
#[ inline]
0 commit comments