@@ -1173,7 +1173,7 @@ impl<T> Option<T> {
1173
1173
// Entry-like operations to insert a value and return a reference
1174
1174
/////////////////////////////////////////////////////////////////////////
1175
1175
1176
- /// Inserts `value` into the option then returns a mutable reference to it.
1176
+ /// Inserts `value` into the option, then returns a mutable reference to it.
1177
1177
///
1178
1178
/// If the option already contains a value, the old value is dropped.
1179
1179
///
@@ -1397,7 +1397,7 @@ impl<T> Option<T> {
1397
1397
}
1398
1398
1399
1399
impl < T , U > Option < ( T , U ) > {
1400
- /// Unzips an option containing a tuple of two options
1400
+ /// Unzips an option containing a tuple of two options.
1401
1401
///
1402
1402
/// If `self` is `Some((a, b))` this method returns `(Some(a), Some(b))`.
1403
1403
/// Otherwise, `(None, None)` is returned.
@@ -1500,7 +1500,7 @@ impl<T: Clone> Option<&mut T> {
1500
1500
}
1501
1501
1502
1502
impl < T : Default > Option < T > {
1503
- /// Returns the contained [`Some`] value or a default
1503
+ /// Returns the contained [`Some`] value or a default.
1504
1504
///
1505
1505
/// Consumes the `self` argument then, if [`Some`], returns the contained
1506
1506
/// value, otherwise if [`None`], returns the [default value] for that
@@ -1561,7 +1561,7 @@ impl<T: DerefMut> Option<T> {
1561
1561
/// Converts from `Option<T>` (or `&mut Option<T>`) to `Option<&mut T::Target>`.
1562
1562
///
1563
1563
/// Leaves the original `Option` in-place, creating a new one containing a mutable reference to
1564
- /// the inner type's `Deref::Target` type.
1564
+ /// the inner type's [ `Deref::Target`] type.
1565
1565
///
1566
1566
/// # Examples
1567
1567
///
@@ -2039,7 +2039,7 @@ impl<T> ops::FromResidual for Option<T> {
2039
2039
}
2040
2040
2041
2041
impl < T > Option < Option < T > > {
2042
- /// Converts from `Option<Option<T>>` to `Option<T>`
2042
+ /// Converts from `Option<Option<T>>` to `Option<T>`.
2043
2043
///
2044
2044
/// # Examples
2045
2045
///
0 commit comments