Skip to content

Commit

Permalink
Fixed typo, rebased
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Shamis committed Nov 4, 2024
1 parent 37f48da commit 65d8f1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/core/src/fmt/num.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ unsafe trait GenericRadix: Sized {
}
}
// SAFETY: `curr` is initialized to `buf.len()` and is only decremented, so it can't overflow. It is
// decremented exactly once for each digit. Since u128 is the widest fixed width integer format dupported,
// decremented exactly once for each digit. Since u128 is the widest fixed width integer format supported,
// the maximum number of digits (bits) is 128 for base-2, so `curr` won't underflow as well.
let buf = unsafe { buf.get_unchecked(curr..) };
// SAFETY: The only chars in `buf` are created by `Self::digit` which are assumed to be
Expand Down

0 comments on commit 65d8f1b

Please sign in to comment.