mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-24 13:43:04 +00:00
Rollup merge of #80385 - camelid:clarify-cell-replace-docs, r=Mark-Simulacrum
Clarify what `Cell::replace` returns
This commit is contained in:
commit
2f0bbc0d1d
@ -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
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user