diff options
| author | Camelid <camelidcamel@gmail.com> | 2020-12-26 10:09:41 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-26 10:09:41 -0800 |
| commit | c71f5232d812fb17c87650a84c19cd12647e6907 (patch) | |
| tree | 2960b0ebd16a426fff3222b1ddb4c4e8dcdf1c0b | |
| parent | 1832bdd7de93573464e1536e3ea17d5fd7d2888b (diff) | |
| download | rust-c71f5232d812fb17c87650a84c19cd12647e6907.tar.gz rust-c71f5232d812fb17c87650a84c19cd12647e6907.zip | |
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 c5ab7a39ff0..bccc34bf440 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -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 /// |
