about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-01-03 17:56:33 +0900
committerGitHub <noreply@github.com>2020-01-03 17:56:33 +0900
commit14c96ce48c44bfe4911bb9e29b7b93aae06477e2 (patch)
treef110801b7db0161f066cdf836e105524bd3ed747
parent39a68a130ada3e705216bc96bf482e80d827d193 (diff)
parent4a4881843313ef620dc528cbec95ba7009b79967 (diff)
downloadrust-14c96ce48c44bfe4911bb9e29b7b93aae06477e2.tar.gz
rust-14c96ce48c44bfe4911bb9e29b7b93aae06477e2.zip
Rollup merge of #67825 - petertodd:2020-mem-take-grammar, r=steveklabnik
Minor: change take() docs grammar to match other docs

Eg. mem::replace()
-rw-r--r--src/libcore/mem/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/mem/mod.rs b/src/libcore/mem/mod.rs
index e11072db0dc..9eb151cf528 100644
--- a/src/libcore/mem/mod.rs
+++ b/src/libcore/mem/mod.rs
@@ -557,7 +557,7 @@ pub fn swap<T>(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
 ///