Skip to content

Commit

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

Clarify what `Cell::replace` returns
  • Loading branch information
JohnTitor authored Mar 11, 2021
2 parents 4a8b6f7 + c71f523 commit 2f0bbc0
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 2f0bbc0

Please sign in to comment.