From 61cf385d315e17f7667adc9d6263dc12c8b885fd Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Mon, 19 Aug 2024 06:19:35 +0200 Subject: [PATCH] Fix double spaces in comments and doc comments --- src/buf/buf_mut.rs | 10 +++++----- src/buf/uninit_slice.rs | 2 +- src/bytes.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/buf/buf_mut.rs b/src/buf/buf_mut.rs index e13278d2c..2a3b5e9ee 100644 --- a/src/buf/buf_mut.rs +++ b/src/buf/buf_mut.rs @@ -1107,7 +1107,7 @@ pub unsafe trait BufMut { } } - /// Writes an IEEE754 single-precision (4 bytes) floating point number to + /// Writes an IEEE754 single-precision (4 bytes) floating point number to /// `self` in big-endian byte order. /// /// The current position is advanced by 4. @@ -1131,7 +1131,7 @@ pub unsafe trait BufMut { self.put_u32(n.to_bits()); } - /// Writes an IEEE754 single-precision (4 bytes) floating point number to + /// Writes an IEEE754 single-precision (4 bytes) floating point number to /// `self` in little-endian byte order. /// /// The current position is advanced by 4. @@ -1183,7 +1183,7 @@ pub unsafe trait BufMut { self.put_u32_ne(n.to_bits()); } - /// Writes an IEEE754 double-precision (8 bytes) floating point number to + /// Writes an IEEE754 double-precision (8 bytes) floating point number to /// `self` in big-endian byte order. /// /// The current position is advanced by 8. @@ -1207,7 +1207,7 @@ pub unsafe trait BufMut { self.put_u64(n.to_bits()); } - /// Writes an IEEE754 double-precision (8 bytes) floating point number to + /// Writes an IEEE754 double-precision (8 bytes) floating point number to /// `self` in little-endian byte order. /// /// The current position is advanced by 8. @@ -1231,7 +1231,7 @@ pub unsafe trait BufMut { self.put_u64_le(n.to_bits()); } - /// Writes an IEEE754 double-precision (8 bytes) floating point number to + /// Writes an IEEE754 double-precision (8 bytes) floating point number to /// `self` in native-endian byte order. /// /// The current position is advanced by 8. diff --git a/src/buf/uninit_slice.rs b/src/buf/uninit_slice.rs index 82ebdbbb3..aea096ae6 100644 --- a/src/buf/uninit_slice.rs +++ b/src/buf/uninit_slice.rs @@ -110,7 +110,7 @@ impl UninitSlice { unsafe { self[index..].as_mut_ptr().write(byte) } } - /// Copies bytes from `src` into `self`. + /// Copies bytes from `src` into `self`. /// /// The length of `src` must be the same as `self`. /// diff --git a/src/bytes.rs b/src/bytes.rs index e0c33b3e6..da0ba3a6f 100644 --- a/src/bytes.rs +++ b/src/bytes.rs @@ -1301,7 +1301,7 @@ unsafe fn shallow_clone_vec( offset: *const u8, len: usize, ) -> Bytes { - // If the buffer is still tracked in a `Vec`. It is time to + // If the buffer is still tracked in a `Vec`. It is time to // promote the vec to an `Arc`. This could potentially be called // concurrently, so some care must be taken.