Skip to content

Commit 3955779

Browse files
Canopm-ou-se
andcommitted
Update library/core/src/option.rs
Co-authored-by: Mara Bos <m-ou.se@m-ou.se>
1 parent cc8b77a commit 3955779

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/src/option.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -568,6 +568,8 @@ impl<T> Option<T> {
568568

569569
/// Inserts `value` into the option then returns a mutable reference to it.
570570
///
571+
/// If the option already contains a value, the old value is dropped.
572+
///
571573
/// # Example
572574
///
573575
/// ```

0 commit comments

Comments
 (0)