about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-08-23 05:11:41 +0000
committerbors <bors@rust-lang.org>2019-08-23 05:11:41 +0000
commit0507d49755b9f506da8770af757704eb5c2b54d7 (patch)
tree722fad519cbebfb0232b571008589253fb4c863c /src/liballoc
parenta71e32e4078f3a8c1ebc2a731e23ac3da3ef73a1 (diff)
parentd9f3258186cc221b41d2d869671d47fd4b716bbe (diff)
downloadrust-0507d49755b9f506da8770af757704eb5c2b54d7.tar.gz
rust-0507d49755b9f506da8770af757704eb5c2b54d7.zip
Auto merge of #63808 - Rosto75:master, r=KodrAus
A bunch of minor documentation tweaks and fixes.
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/collections/vec_deque.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/collections/vec_deque.rs b/src/liballoc/collections/vec_deque.rs
index 7315963cc8b..a4a0fbb194d 100644
--- a/src/liballoc/collections/vec_deque.rs
+++ b/src/liballoc/collections/vec_deque.rs
@@ -1810,7 +1810,7 @@ impl<T> VecDeque<T> {
         other
     }
 
-    /// Moves all the elements of `other` into `Self`, leaving `other` empty.
+    /// Moves all the elements of `other` into `self`, leaving `other` empty.
     ///
     /// # Panics
     ///
@@ -1847,7 +1847,7 @@ impl<T> VecDeque<T> {
     ///
     /// let mut buf = VecDeque::new();
     /// buf.extend(1..5);
-    /// buf.retain(|&x| x%2 == 0);
+    /// buf.retain(|&x| x % 2 == 0);
     /// assert_eq!(buf, [2, 4]);
     /// ```
     ///