Kaynağa Gözat

GDScript Basics: More braces for consistency.

Max Hilbrunner 3 yıl önce
ebeveyn
işleme
8472c9a304

+ 2 - 2
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -1037,7 +1037,7 @@ using ``break`` or continued using ``continue``:
 
 ::
 
-    while [expression]:
+    while (expression):
         statement(s)
 
 for
@@ -1083,7 +1083,7 @@ It's the equivalent of the ``switch`` statement found in many other languages, b
 
 Basic syntax::
 
-    match [expression]:
+    match (expression):
         [pattern](s):
             [block]
         [pattern](s):