Clarify what Cell::replace returns

This commit is contained in:
Camelid
2020-12-26 10:09:41 -08:00
committed by GitHub
parent 1832bdd7de
commit c71f5232d8

View File

@@ -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
///