@@ -120,7 +120,7 @@ pub use intrinsics::write_bytes;
120120///
121121/// Additionally, if `T` is not [`Copy`], using the pointed-to value after
122122/// calling `drop_in_place` can cause undefined behavior. Note that `*to_drop =
123- /// foo` counts as a use because it will cause the the value to be dropped
123+ /// foo` counts as a use because it will cause the value to be dropped
124124/// again. [`write`] can be used to overwrite data without causing it to be
125125/// dropped.
126126///
@@ -371,7 +371,7 @@ pub(crate) unsafe fn swap_nonoverlapping_one<T>(x: *mut T, y: *mut T) {
371371#[ inline]
372372unsafe fn swap_nonoverlapping_bytes ( x : * mut u8 , y : * mut u8 , len : usize ) {
373373 // The approach here is to utilize simd to swap x & y efficiently. Testing reveals
374- // that swapping either 32 bytes or 64 bytes at a time is most efficient for intel
374+ // that swapping either 32 bytes or 64 bytes at a time is most efficient for Intel
375375 // Haswell E processors. LLVM is more able to optimize if we give a struct a
376376 // #[repr(simd)], even if we don't actually use this struct directly.
377377 //
@@ -1005,7 +1005,7 @@ impl<T: ?Sized> *const T {
10051005 /// # Null-unchecked version
10061006 ///
10071007 /// If you are sure the pointer can never be null and are looking for some kind of
1008- /// `as_ref_unchecked` that returns the `&T` instead of `Option<&T>, know that you can
1008+ /// `as_ref_unchecked` that returns the `&T` instead of `Option<&T>` , know that you can
10091009 /// dereference the pointer directly.
10101010 ///
10111011 /// ```
@@ -1625,7 +1625,7 @@ impl<T: ?Sized> *mut T {
16251625 /// # Null-unchecked version
16261626 ///
16271627 /// If you are sure the pointer can never be null and are looking for some kind of
1628- /// `as_ref_unchecked` that returns the `&T` instead of `Option<&T>, know that you can
1628+ /// `as_ref_unchecked` that returns the `&T` instead of `Option<&T>` , know that you can
16291629 /// dereference the pointer directly.
16301630 ///
16311631 /// ```
0 commit comments