Skip to content

Commit 10fce6e

Browse files
committed
Fix a couple of typos in RawVec
1 parent 2b7ea14 commit 10fce6e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/raw_vec.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use super::boxed::Box;
1717
use core::ops::Drop;
1818
use core::cmp;
1919

20-
/// A low-level utility for more ergonomically allocating, reallocating, and deallocating a
20+
/// A low-level utility for more ergonomically allocating, reallocating, and deallocating
2121
/// a buffer of memory on the heap without having to worry about all the corner cases
2222
/// involved. This type is excellent for building your own data structures like Vec and VecDeque.
2323
/// In particular:
@@ -534,8 +534,8 @@ impl<T> RawVec<T> {
534534
/// Converts the entire buffer into `Box<[T]>`.
535535
///
536536
/// While it is not *strictly* Undefined Behavior to call
537-
/// this procedure while some of the RawVec is unintialized,
538-
/// it cetainly makes it trivial to trigger it.
537+
/// this procedure while some of the RawVec is uninitialized,
538+
/// it certainly makes it trivial to trigger it.
539539
///
540540
/// Note that this will correctly reconstitute any `cap` changes
541541
/// that may have been performed. (see description of type for details)

0 commit comments

Comments
 (0)