Skip to content

Commit 0fcb4d8

Browse files
Fix typos
I am certainly not on the ball today.
1 parent 9c65d12 commit 0fcb4d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/iterators.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ impl<'a, T: 'a, const N: usize> Iterator for StaticVecIterConst<'a, T, N> {
118118
_ => {
119119
let res = Some(&*self.start);
120120
match size_of::<T>() {
121-
0 => self.end = (self.end as *const u8).wrapping_offset(-1) as *const T;
121+
0 => self.end = (self.end as *const u8).wrapping_offset(-1) as *const T,
122122
_ => self.start = self.start.offset(1),
123123
}
124124
res
@@ -313,7 +313,7 @@ impl<'a, T: 'a, const N: usize> Iterator for StaticVecIterMut<'a, T, N> {
313313
_ => {
314314
let res = Some(&mut *self.start);
315315
match size_of::<T>() {
316-
0 => self.end = (self.end as *mut u8).wrapping_offset(-1) as *mut T;
316+
0 => self.end = (self.end as *mut u8).wrapping_offset(-1) as *mut T,
317317
_ => self.start = self.start.offset(1),
318318
}
319319
res

0 commit comments

Comments
 (0)