From e1a9a3328dd6e8d32b8b8f716bbc4faba3b6d0ab Mon Sep 17 00:00:00 2001 From: Michael Alexsander Date: Thu, 23 Jan 2020 14:15:39 -0300 Subject: [PATCH] Remove unnecessary parenthesis from code examples --- doc/classes/@GlobalScope.xml | 4 ++-- 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 a131f1f8c81..73f0f1bd414 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] diff --git a/doc/classes/Directory.xml b/doc/classes/Directory.xml index 91256359fb2..883f3049e37 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: