From c71f5232d812fb17c87650a84c19cd12647e6907 Mon Sep 17 00:00:00 2001 From: Camelid Date: Sat, 26 Dec 2020 10:09:41 -0800 Subject: [PATCH] Clarify what `Cell::replace` returns --- library/core/src/cell.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/cell.rs b/library/core/src/cell.rs index c5ab7a39ff0ca..bccc34bf44074 100644 --- a/library/core/src/cell.rs +++ b/library/core/src/cell.rs @@ -374,7 +374,7 @@ impl Cell { } } - /// Replaces the contained value, and returns it. + /// Replaces the contained value with `val`, and returns the old contained value. /// /// # Examples ///