فهرست منبع

GDScript Basics: More braces for consistency.

Max Hilbrunner 3 سال پیش
والد
کامیت
8472c9a304
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      tutorials/scripting/gdscript/gdscript_basics.rst

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

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