Skip to content

Commit 2f0bbc0

Browse files
authored
Rollup merge of #80385 - camelid:clarify-cell-replace-docs, r=Mark-Simulacrum
Clarify what `Cell::replace` returns
2 parents 4a8b6f7 + c71f523 commit 2f0bbc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/cell.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ impl<T> Cell<T> {
378378
}
379379
}
380380

381-
/// Replaces the contained value, and returns it.
381+
/// Replaces the contained value with `val`, and returns the old contained value.
382382
///
383383
/// # Examples
384384
///

0 commit comments

Comments
 (0)