Skip to content

Commit

Permalink
Clarify what Cell::replace returns
Browse files Browse the repository at this point in the history
  • Loading branch information
camelid authored Dec 26, 2020
1 parent 1832bdd commit c71f523
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/cell.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,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
///
Expand Down

0 comments on commit c71f523

Please sign in to comment.