summary refs log tree commit diff
path: root/library/alloc/src/vec/mod.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-02-28 20:05:13 +0100
committerGitHub <noreply@github.com>2022-02-28 20:05:13 +0100
commit9d23c320e43b3d4e2ea0761fb56368bdd9109ed4 (patch)
tree4faf93a8b51dd97c7ab74b784230996cb5bcc0b0 /library/alloc/src/vec/mod.rs
parent97cde9fe08804a3a5208d77f6870ad7d43f8c9c3 (diff)
parent249eb1c589bd12b2a26d9603460d62d514b59b90 (diff)
downloadrust-9d23c320e43b3d4e2ea0761fb56368bdd9109ed4.tar.gz
rust-9d23c320e43b3d4e2ea0761fb56368bdd9109ed4.zip
Rollup merge of #92399 - Veeupup:fix_vec_typo, r=Dylan-DPC
fix typo in btree/vec doc: Self -> self

this pr fixes #92345
the documentation refers to the object the method is called for, not the type, so it should be using the lower case 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 c29aa0fec5b..c4c393f55ee 100644
--- a/library/alloc/src/vec/mod.rs
+++ b/library/alloc/src/vec/mod.rs
@@ -1763,7 +1763,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
     ///
@@ -1788,7 +1788,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]) {