Rollup merge of #80385 - camelid:clarify-cell-replace-docs, r=Mark-Simulacrum

Clarify what `Cell::replace` returns
This commit is contained in:
Yuki Okushi 2021-03-12 08:55:09 +09:00 committed by GitHub
commit 2f0bbc0d1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,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
///