Skip to content

Commit c71f523

Browse files
authored
Clarify what Cell::replace returns
1 parent 1832bdd commit c71f523

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
@@ -374,7 +374,7 @@ impl<T> Cell<T> {
374374
}
375375
}
376376

377-
/// Replaces the contained value, and returns it.
377+
/// Replaces the contained value with `val`, and returns the old contained value.
378378
///
379379
/// # Examples
380380
///

0 commit comments

Comments
 (0)