From 4a4881843313ef620dc528cbec95ba7009b79967 Mon Sep 17 00:00:00 2001 From: Peter Todd Date: Fri, 3 Jan 2020 00:40:04 -0500 Subject: [PATCH] Minor: change take() docs grammar to match other docs Eg. mem::replace() --- src/libcore/mem/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs index e11072db0dcc6..9eb151cf528a5 100644 --- a/src/libcore/mem/mod.rs +++ b/src/libcore/mem/mod.rs @@ -557,7 +557,7 @@ pub fn swap(x: &mut T, y: &mut T) { } } -/// Replace `dest` with the default value of `T`, and return the previous `dest` value. +/// Replaces `dest` with the default value of `T`, returning the previous `dest` value. /// /// # Examples ///