소스 검색

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)
 
 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):