about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugene Shamis <eugene.shamis@amd.com>2024-11-04 12:43:57 -0500
committerEugene Shamis <eugene.shamis@amd.com>2024-11-04 12:43:57 -0500
commit65d8f1b8bfe79a3b88048ce24629456b007f8f4a (patch)
tree3f0cb7c2d3aeaeb7aa9c9ad9f3802dfc5675100a
parent37f48da802f2f76e210c82731fc7483d7ae96bfd (diff)
downloadrust-65d8f1b8bfe79a3b88048ce24629456b007f8f4a.tar.gz
rust-65d8f1b8bfe79a3b88048ce24629456b007f8f4a.zip
Fixed typo, rebased
-rw-r--r--library/core/src/fmt/num.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/fmt/num.rs b/library/core/src/fmt/num.rs
index 5a5c4d60074..d43f25d9fd1 100644
--- a/library/core/src/fmt/num.rs
+++ b/library/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