Clarify what `Cell::replace` returns
This commit is contained in:
parent
1832bdd7de
commit
c71f5232d8
|
@ -374,7 +374,7 @@ impl<T> Cell<T> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Replaces the contained value, and returns it.
|
||||
/// Replaces the contained value with `val`, and returns the old contained value.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
|
Loading…
Reference in New Issue