[libc-commits] [libc] ee252b9 - [libc][NFC] Fix typo

Guillaume Chatelet via libc-commits libc-commits at lists.llvm.org
Tue Aug 29 04:49:56 PDT 2023


Author: Guillaume Chatelet
Date: 2023-08-29T11:48:27Z
New Revision: ee252b9d5b47ebc603ad93f232a0851f29ff7eac

URL: https://github.com/llvm/llvm-project/commit/ee252b9d5b47ebc603ad93f232a0851f29ff7eac
DIFF: https://github.com/llvm/llvm-project/commit/ee252b9d5b47ebc603ad93f232a0851f29ff7eac.diff

LOG: [libc][NFC] Fix typo

Added: 
    

Modified: 
    libc/src/__support/str_to_integer.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/str_to_integer.h b/libc/src/__support/str_to_integer.h
index b7af39d09bb47e..fd872177c68b64 100644
--- a/libc/src/__support/str_to_integer.h
+++ b/libc/src/__support/str_to_integer.h
@@ -49,7 +49,7 @@ LIBC_INLINE bool is_hex_start(const char *__restrict src) {
 // base.
 LIBC_INLINE int infer_base(const char *__restrict *__restrict src) {
   // A hexadecimal number is defined as "the prefix 0x or 0X followed by a
-  // sequence of the deimal digits and the letters a (or A) through f (or F)
+  // sequence of the decimal digits and the letters a (or A) through f (or F)
   // with values 10 through 15 respectively." (C standard 6.4.4.1)
   if (is_hex_start(*src)) {
     (*src) += 2;


        


More information about the libc-commits mailing list