Skip to content

Commit 291df5a

Browse files
Fix double spaces in comments and doc comments (#731)
1 parent ed7d5ff commit 291df5a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/buf/buf_mut.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ pub unsafe trait BufMut {
11071107
}
11081108
}
11091109

1110-
/// Writes an IEEE754 single-precision (4 bytes) floating point number to
1110+
/// Writes an IEEE754 single-precision (4 bytes) floating point number to
11111111
/// `self` in big-endian byte order.
11121112
///
11131113
/// The current position is advanced by 4.
@@ -1131,7 +1131,7 @@ pub unsafe trait BufMut {
11311131
self.put_u32(n.to_bits());
11321132
}
11331133

1134-
/// Writes an IEEE754 single-precision (4 bytes) floating point number to
1134+
/// Writes an IEEE754 single-precision (4 bytes) floating point number to
11351135
/// `self` in little-endian byte order.
11361136
///
11371137
/// The current position is advanced by 4.
@@ -1183,7 +1183,7 @@ pub unsafe trait BufMut {
11831183
self.put_u32_ne(n.to_bits());
11841184
}
11851185

1186-
/// Writes an IEEE754 double-precision (8 bytes) floating point number to
1186+
/// Writes an IEEE754 double-precision (8 bytes) floating point number to
11871187
/// `self` in big-endian byte order.
11881188
///
11891189
/// The current position is advanced by 8.
@@ -1207,7 +1207,7 @@ pub unsafe trait BufMut {
12071207
self.put_u64(n.to_bits());
12081208
}
12091209

1210-
/// Writes an IEEE754 double-precision (8 bytes) floating point number to
1210+
/// Writes an IEEE754 double-precision (8 bytes) floating point number to
12111211
/// `self` in little-endian byte order.
12121212
///
12131213
/// The current position is advanced by 8.
@@ -1231,7 +1231,7 @@ pub unsafe trait BufMut {
12311231
self.put_u64_le(n.to_bits());
12321232
}
12331233

1234-
/// Writes an IEEE754 double-precision (8 bytes) floating point number to
1234+
/// Writes an IEEE754 double-precision (8 bytes) floating point number to
12351235
/// `self` in native-endian byte order.
12361236
///
12371237
/// The current position is advanced by 8.

src/buf/uninit_slice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl UninitSlice {
110110
unsafe { self[index..].as_mut_ptr().write(byte) }
111111
}
112112

113-
/// Copies bytes from `src` into `self`.
113+
/// Copies bytes from `src` into `self`.
114114
///
115115
/// The length of `src` must be the same as `self`.
116116
///

src/bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ unsafe fn shallow_clone_vec(
13011301
offset: *const u8,
13021302
len: usize,
13031303
) -> Bytes {
1304-
// If the buffer is still tracked in a `Vec<u8>`. It is time to
1304+
// If the buffer is still tracked in a `Vec<u8>`. It is time to
13051305
// promote the vec to an `Arc`. This could potentially be called
13061306
// concurrently, so some care must be taken.
13071307

0 commit comments

Comments
 (0)