about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2021-03-12 08:55:09 +0900
committerGitHub <noreply@github.com>2021-03-12 08:55:09 +0900
commit2f0bbc0d1d1ee137d226ea1c6d703e81d5b3660e (patch)
tree8126b73b8a60174d0bc113e52698a25dab3061a0
parent4a8b6f708c38342a6c74aa00cf4323774c7381a6 (diff)
parentc71f5232d812fb17c87650a84c19cd12647e6907 (diff)
downloadrust-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.rs2
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
     ///