From 2ae24bf3e157ffbf2c8af3eb32ee703e29e17dbb Mon Sep 17 00:00:00 2001 From: Eugene Shamis Date: Mon, 4 Nov 2024 12:43:57 -0500 Subject: [PATCH] Fixed typo, rebased --- core/src/fmt/num.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/fmt/num.rs b/core/src/fmt/num.rs index 5a5c4d600745f..d43f25d9fd129 100644 --- a/core/src/fmt/num.rs +++ b/core/src/fmt/num.rs @@ -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