diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-03-12 08:55:09 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-12 08:55:09 +0900 |
| commit | 2f0bbc0d1d1ee137d226ea1c6d703e81d5b3660e (patch) | |
| tree | 8126b73b8a60174d0bc113e52698a25dab3061a0 | |
| parent | 4a8b6f708c38342a6c74aa00cf4323774c7381a6 (diff) | |
| parent | c71f5232d812fb17c87650a84c19cd12647e6907 (diff) | |
| download | rust-2f0bbc0d1d1ee137d226ea1c6d703e81d5b3660e.tar.gz rust-2f0bbc0d1d1ee137d226ea1c6d703e81d5b3660e.zip | |
Rollup merge of #80385 - camelid:clarify-cell-replace-docs, r=Mark-Simulacrum
Clarify what `Cell::replace` returns
| -rw-r--r-- | library/core/src/cell.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index cce1242d84f..2fbbeb35e1d 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -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 /// |
