Update library/core/src/option.rs

Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
This commit is contained in:
Canop 2020-10-23 11:08:09 +02:00
parent cc8b77a7cf
commit 39557799c7

View File

@ -568,6 +568,8 @@ pub fn ok_or_else<E, F: FnOnce() -> E>(self, err: F) -> Result<T, E> {
/// Inserts `value` into the option then returns a mutable reference to it.
///
/// If the option already contains a value, the old value is dropped.
///
/// # Example
///
/// ```