Skip to content

Commit e93d03b

Browse files
gilescopeLingMan
andcommitted
Update library/core/src/num/mod.rs
Co-authored-by: LingMan <[email protected]>
1 parent 5f78bb4 commit e93d03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/num/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1074,7 +1074,7 @@ fn from_str_radix<T: FromStrRadixHelper>(src: &str, radix: u32) -> Result<T, Par
10741074
// This bound is when `radix.pow(digits.len()) - 1 <= T::MAX` but the condition
10751075
// above is a faster (conservative) approximation of this.
10761076
//
1077-
// Consider radix 16 as it has the most chance of overflow per digit:
1077+
// Consider radix 16 as it has the highest information density per digit and will thus overflow the earliest:
10781078
// `u8::MAX` is `ff` - any str of len 2 is guaranteed to not overflow.
10791079
// `i8::MAX` is `7f` - only a str of len 1 is guaranteed to not overflow.
10801080
unsafe {

0 commit comments

Comments
 (0)