Skip to content

Commit

Permalink
doc: better commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
prestwich committed Jul 29, 2023
1 parent 26f8a87 commit 6a2e2dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/base_convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ impl<const BITS: usize, const LIMBS: usize> Uint<BITS, LIMBS> {
result.add_digit(digit, base)?;
}

// If the iterator still contains digits, we have overflowed.
if iter.next().is_some() {
return Err(BaseConvertError::Overflow);
}
Expand Down

0 comments on commit 6a2e2dc

Please sign in to comment.