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 {
222222
223223 #[ inline]
224224 fn size_hint ( & self ) -> ( usize , Option < usize > ) {
225- // can't underlflow thanks to the invariant
225+ // can't overflow thanks to the invariant
226226 let len = self . signature . len ( ) - self . pos ;
227227 ( len, Some ( len) )
228228 }
@@ -231,11 +231,11 @@ mod into_iter {
231231 #[ inline]
232232 fn nth ( & mut self , n : usize ) -> Option < Self :: Item > {
233233 if n >= self . len ( ) {
234- // upholds invariant becasue the values will be equal
234+ // upholds invariant because the values will be equal
235235 self . pos = self . signature . len ( ) ;
236236 None
237237 } 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
239239 // overflows nor breaks the invariant
240240 self . pos += n;
241241 self . next ( )
You can’t perform that action at this time.
0 commit comments