diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-01-23 18:33:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-23 18:33:22 +0100 |
commit | 93aba68026bb1924961e66da392367c8d6d55c9b (patch) | |
tree | b829daa50871829705d280aa21a8d28d9f314502 /doc | |
parent | cadf946863809fac2429eab1787d2f67bafcc173 (diff) | |
parent | e1a9a3328dd6e8d32b8b8f716bbc4faba3b6d0ab (diff) |
Merge pull request #35480 from YeldhamDev/doc_parenthesis_removal
Remove unnecessary parenthesis from code examples
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/@GlobalScope.xml | 4 | ||||
-rw-r--r-- | doc/classes/Directory.xml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/classes/@GlobalScope.xml b/doc/classes/@GlobalScope.xml index a131f1f8c8..73f0f1bd41 100644 --- a/doc/classes/@GlobalScope.xml +++ b/doc/classes/@GlobalScope.xml @@ -1167,10 +1167,10 @@ Since [constant OK] has value 0, and all other failure codes are positive integers, it can also be used in boolean checks, e.g.: [codeblock] var err = method_that_returns_error() - if (err != OK): + if err != OK: print("Failure!) # Or, equivalent: - if (err): + if err: print("Still failing!) [/codeblock] </constant> diff --git a/doc/classes/Directory.xml b/doc/classes/Directory.xml index 91256359fb..883f3049e3 100644 --- a/doc/classes/Directory.xml +++ b/doc/classes/Directory.xml @@ -13,7 +13,7 @@ if dir.open(path) == OK: dir.list_dir_begin() var file_name = dir.get_next() - while (file_name != ""): + while file_name != "": if dir.current_is_dir(): print("Found directory: " + file_name) else: |