Skip to content

Commit 31b6bad

Browse files
authored
Update serialized_signature.rs
1 parent 65a92ac commit 31b6bad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ecdsa/serialized_signature.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)