diff options
| -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 /// |
