@@ -120,7 +120,7 @@ pub use intrinsics::write_bytes;
120
120
///
121
121
/// Additionally, if `T` is not [`Copy`], using the pointed-to value after
122
122
/// 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
124
124
/// again. [`write`] can be used to overwrite data without causing it to be
125
125
/// dropped.
126
126
///
@@ -371,7 +371,7 @@ pub(crate) unsafe fn swap_nonoverlapping_one<T>(x: *mut T, y: *mut T) {
371
371
#[ inline]
372
372
unsafe fn swap_nonoverlapping_bytes ( x : * mut u8 , y : * mut u8 , len : usize ) {
373
373
// 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
375
375
// Haswell E processors. LLVM is more able to optimize if we give a struct a
376
376
// #[repr(simd)], even if we don't actually use this struct directly.
377
377
//
@@ -1005,7 +1005,7 @@ impl<T: ?Sized> *const T {
1005
1005
/// # Null-unchecked version
1006
1006
///
1007
1007
/// 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
1009
1009
/// dereference the pointer directly.
1010
1010
///
1011
1011
/// ```
@@ -1625,7 +1625,7 @@ impl<T: ?Sized> *mut T {
1625
1625
/// # Null-unchecked version
1626
1626
///
1627
1627
/// 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
1629
1629
/// dereference the pointer directly.
1630
1630
///
1631
1631
/// ```
0 commit comments