[llvm] 38a5dd5 - Fix typo in LLVM Kaleidoscope tutorial (Chapter 2) (#169319)

via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 24 09:05:55 PST 2025


Author: Shota Matsubara
Date: 2025-11-24T18:05:51+01:00
New Revision: 38a5dd5bc7d7f59a2acfeaff3b6852337bb6704e

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

LOG: Fix typo in LLVM Kaleidoscope tutorial (Chapter 2) (#169319)

This patch fixes a minor typo in the **Kaleidoscope tutorial (Chapter
2)**.

The sentence:
“checks to see if **if** is too low”
has been corrected to:
“checks to see if **it** is too low”.

This is a documentation-only change and does not affect any semantic
behavior or code generation.

Thank you for maintaining the tutorial, and please let me know if any
further adjustments are needed.

Added: 
    

Modified: 
    llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst

Removed: 
    


################################################################################
diff  --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst
index 6aec05f29329a..ee12d983dd99e 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl02.rst
@@ -453,7 +453,7 @@ starts with:
           return LHS;
 
 This code gets the precedence of the current token and checks to see if
-if is too low. Because we defined invalid tokens to have a precedence of
+it is too low. Because we defined invalid tokens to have a precedence of
 -1, this check implicitly knows that the pair-stream ends when the token
 stream runs out of binary operators. If this check succeeds, we know
 that the token is a binary operator and that it will be included in this


        


More information about the llvm-commits mailing list