]> git.lizzy.rs Git - rust.git/commitdiff
Fix a couple of typos in RawVec
authorIvan Ukhov <ivan.ukhov@gmail.com>
Sun, 14 Aug 2016 04:59:43 +0000 (06:59 +0200)
committerIvan Ukhov <ivan.ukhov@gmail.com>
Sun, 14 Aug 2016 04:59:43 +0000 (06:59 +0200)
src/liballoc/raw_vec.rs

index 58c841151c0f0e1b4bf0b46d0db8196c215ffdd1..cdb70ce57708ad705595a84ebe65f32289471de5 100644 (file)
@@ -17,7 +17,7 @@
 use core::ops::Drop;
 use core::cmp;
 
-/// A low-level utility for more ergonomically allocating, reallocating, and deallocating a
+/// A low-level utility for more ergonomically allocating, reallocating, and deallocating
 /// a buffer of memory on the heap without having to worry about all the corner cases
 /// involved. This type is excellent for building your own data structures like Vec and VecDeque.
 /// In particular:
@@ -534,8 +534,8 @@ pub fn shrink_to_fit(&mut self, amount: usize) {
     /// Converts the entire buffer into `Box<[T]>`.
     ///
     /// While it is not *strictly* Undefined Behavior to call
-    /// this procedure while some of the RawVec is unintialized,
-    /// it cetainly makes it trivial to trigger it.
+    /// this procedure while some of the RawVec is uninitialized,
+    /// it certainly makes it trivial to trigger it.
     ///
     /// Note that this will correctly reconstitute any `cap` changes
     /// that may have been performed. (see description of type for details)