]> git.lizzy.rs Git - rust.git/blobdiff - src/liballoc/raw_vec.rs
Various minor/cosmetic improvements to code
[rust.git] / src / liballoc / raw_vec.rs
index 837770feecef596d7380dd009f6802a904877f32..f4674b327695e834e900d8231a005f1b9fee03f6 100644 (file)
@@ -44,7 +44,7 @@
 /// This enables you to use capacity growing logic catch the overflows in your length
 /// that might occur with zero-sized types.
 ///
-/// However this means that you need to be careful when roundtripping this type
+/// However this means that you need to be careful when round-tripping this type
 /// with a `Box<[T]>`: `cap()` won't yield the len. However `with_capacity`,
 /// `shrink_to_fit`, and `from_box` will actually set RawVec's private capacity
 /// field. This allows zero-sized types to not be special-cased by consumers of
@@ -739,7 +739,7 @@ fn drop(&mut self) {
 // On 64-bit we just need to check for overflow since trying to allocate
 // `> isize::MAX` bytes will surely fail. On 32-bit and 16-bit we need to add
 // an extra guard for this in case we're running on a platform which can use
-// all 4GB in user-space. e.g. PAE or x32
+// all 4GB in user-space. e.g., PAE or x32
 
 #[inline]
 fn alloc_guard(alloc_size: usize) -> Result<(), CollectionAllocErr> {