Skip to content

Commit

Permalink
Rollup merge of rust-lang#80385 - camelid:clarify-cell-replace-docs, …
Browse files Browse the repository at this point in the history
…r=Mark-Simulacrum

Clarify what `Cell::replace` returns
  • Loading branch information
Dylan-DPC authored Mar 11, 2021
2 parents 61365c0 + c71f523 commit fef7384
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 @@ -378,7 +378,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 fef7384

Please sign in to comment.