about summary refs log tree commit diff
path: root/library/alloc/src/vec/mod.rs
diff options
context:
space:
mode:
authorVeeupup <931418134@qq.com>2021-12-29 18:01:17 +0800
committerVeeupup <931418134@qq.com>2021-12-29 18:01:17 +0800
commit249eb1c589bd12b2a26d9603460d62d514b59b90 (patch)
tree05dd96afdde41a98a838ac3d9292f938089100f7 /library/alloc/src/vec/mod.rs
parentb70cc6422c141191aeb33f5ab6faba992118812b (diff)
downloadrust-249eb1c589bd12b2a26d9603460d62d514b59b90.tar.gz
rust-249eb1c589bd12b2a26d9603460d62d514b59b90.zip
fix typo in btree/vec doc: Self -> self
Diffstat (limited to 'library/alloc/src/vec/mod.rs')
-rw-r--r--library/alloc/src/vec/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/alloc/src/vec/mod.rs b/library/alloc/src/vec/mod.rs
index 2863da05932..2689c6fd1ac 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -1755,7 +1755,7 @@ impl<T, A: Allocator> Vec<T, A> {
         }
     }
 
-    /// Moves all the elements of `other` into `Self`, leaving `other` empty.
+    /// Moves all the elements of `other` into `self`, leaving `other` empty.
     ///
     /// # Panics
     ///
@@ -1780,7 +1780,7 @@ impl<T, A: Allocator> Vec<T, A> {
         }
     }
 
-    /// Appends elements to `Self` from other buffer.
+    /// Appends elements to `self` from other buffer.
     #[cfg(not(no_global_oom_handling))]
     #[inline]
     unsafe fn append_elements(&mut self, other: *const [T]) {