Fix the documentation of Option::replace
This commit is contained in:
parent
af87a3594a
commit
c8f0e6f210
@ -848,7 +848,7 @@ impl<T> Option<T> {
|
||||
|
||||
/// Replaces the actual value in the option by the value given in parameter,
|
||||
/// returning the old value if present,
|
||||
/// leaving a `Some` in its place without deinitializing either one.
|
||||
/// leaving a [`Some`] in its place without deinitializing either one.
|
||||
///
|
||||
/// [`Some`]: #variant.Some
|
||||
///
|
||||
|
Loading…
x
Reference in New Issue
Block a user