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
+1 -1
View File
@@ -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
///