[llvm] [Docs] Add missing closing brace (PR #160641)

Swebert Correa via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 24 21:48:21 PDT 2025


https://github.com/correaswebert created https://github.com/llvm/llvm-project/pull/160641

Fixed a typo in the Kaleidoscope docs. Added the missing closing brace in the function.

>From 56bf3ac1fd7aeb314ccbd5a08e9f33ed96559550 Mon Sep 17 00:00:00 2001
From: Swebert Correa <correaswebert at gmail.com>
Date: Thu, 25 Sep 2025 00:45:29 -0400
Subject: [PATCH] [Docs] Add missing closing brace

---
 llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl01.rst | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl01.rst b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl01.rst
index 71ba9322817e0..a0e03631c0bf1 100644
--- a/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl01.rst
+++ b/llvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl01.rst
@@ -105,6 +105,7 @@ from standard input. Its definition starts as:
       // Skip any whitespace.
       while (isspace(LastChar))
         LastChar = getchar();
+    }
 
 ``gettok`` works by calling the C ``getchar()`` function to read
 characters one at a time from standard input. It eats them as it



More information about the llvm-commits mailing list