Przeglądaj źródła

Fixed typo in comments of numeric literal (#2847)

As I went through and analyzed the Carbon source code, I saw that there is typo in the comments, which may need to be modified to avoid misleading other people.
CanftIn 2 lat temu
rodzic
commit
527f314a2b
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      toolchain/lexer/numeric_literal.cpp

+ 1 - 1
toolchain/lexer/numeric_literal.cpp

@@ -196,7 +196,7 @@ auto LexedNumericLiteral::Parser::Check() -> bool {
 //
 // Ignoring '.' is used when parsing a real literal. For example, when
 // parsing 123.456e7, we want to decompose it into an integer mantissa
-// (123456) and an exponent (7 - 3 = 2), and this routine is given the
+// (123456) and an exponent (7 - 3 = 4), and this routine is given the
 // "123.456" to parse as the mantissa.
 static auto ParseInteger(llvm::StringRef digits,
                          LexedNumericLiteral::Radix radix, bool needs_cleaning)