mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
Rollup merge of #80385 - camelid:clarify-cell-replace-docs, r=Mark-Simulacrum
Clarify what `Cell::replace` returns
This commit is contained in:
@@ -378,7 +378,7 @@ pub fn swap(&self, other: &Self) {
|
||||
}
|
||||
}
|
||||
|
||||
/// Replaces the contained value, and returns it.
|
||||
/// Replaces the contained value with `val`, and returns the old contained value.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user