mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-25 00:00:22 +02:00
Fix double spaces in comments and doc comments (#731)
This commit is contained in:
+5
-5
@@ -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.
|
/// `self` in big-endian byte order.
|
||||||
///
|
///
|
||||||
/// The current position is advanced by 4.
|
/// The current position is advanced by 4.
|
||||||
@@ -1131,7 +1131,7 @@ pub unsafe trait BufMut {
|
|||||||
self.put_u32(n.to_bits());
|
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.
|
/// `self` in little-endian byte order.
|
||||||
///
|
///
|
||||||
/// The current position is advanced by 4.
|
/// The current position is advanced by 4.
|
||||||
@@ -1183,7 +1183,7 @@ pub unsafe trait BufMut {
|
|||||||
self.put_u32_ne(n.to_bits());
|
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.
|
/// `self` in big-endian byte order.
|
||||||
///
|
///
|
||||||
/// The current position is advanced by 8.
|
/// The current position is advanced by 8.
|
||||||
@@ -1207,7 +1207,7 @@ pub unsafe trait BufMut {
|
|||||||
self.put_u64(n.to_bits());
|
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.
|
/// `self` in little-endian byte order.
|
||||||
///
|
///
|
||||||
/// The current position is advanced by 8.
|
/// The current position is advanced by 8.
|
||||||
@@ -1231,7 +1231,7 @@ pub unsafe trait BufMut {
|
|||||||
self.put_u64_le(n.to_bits());
|
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.
|
/// `self` in native-endian byte order.
|
||||||
///
|
///
|
||||||
/// The current position is advanced by 8.
|
/// The current position is advanced by 8.
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ impl UninitSlice {
|
|||||||
unsafe { self[index..].as_mut_ptr().write(byte) }
|
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`.
|
/// The length of `src` must be the same as `self`.
|
||||||
///
|
///
|
||||||
|
|||||||
+1
-1
@@ -1301,7 +1301,7 @@ unsafe fn shallow_clone_vec(
|
|||||||
offset: *const u8,
|
offset: *const u8,
|
||||||
len: usize,
|
len: usize,
|
||||||
) -> Bytes {
|
) -> Bytes {
|
||||||
// If the buffer is still tracked in a `Vec<u8>`. It is time to
|
// If the buffer is still tracked in a `Vec<u8>`. It is time to
|
||||||
// promote the vec to an `Arc`. This could potentially be called
|
// promote the vec to an `Arc`. This could potentially be called
|
||||||
// concurrently, so some care must be taken.
|
// concurrently, so some care must be taken.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user