File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,7 @@ mod into_iter {
222
222
223
223
#[ inline]
224
224
fn size_hint ( & self ) -> ( usize , Option < usize > ) {
225
- // can't underlflow thanks to the invariant
225
+ // can't overflow thanks to the invariant
226
226
let len = self . signature . len ( ) - self . pos ;
227
227
( len, Some ( len) )
228
228
}
@@ -231,11 +231,11 @@ mod into_iter {
231
231
#[ inline]
232
232
fn nth ( & mut self , n : usize ) -> Option < Self :: Item > {
233
233
if n >= self . len ( ) {
234
- // upholds invariant becasue the values will be equal
234
+ // upholds invariant because the values will be equal
235
235
self . pos = self . signature . len ( ) ;
236
236
None
237
237
} else {
238
- // if n < signtature .len() - self.pos then n + self.pos < signature.len() which neither
238
+ // if n < signature .len() - self.pos then n + self.pos < signature.len() which neither
239
239
// overflows nor breaks the invariant
240
240
self . pos += n;
241
241
self . next ( )
You can’t perform that action at this time.
0 commit comments