summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2020-01-23 14:15:39 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2020-01-23 14:15:39 -0300
commite1a9a3328dd6e8d32b8b8f716bbc4faba3b6d0ab (patch)
tree2d5c1092c645305f7e6030ee804871d88d27e1dc
parentac4e4872372e0f173ff0c4123e87adea637e2d26 (diff)
Remove unnecessary parenthesis from code examples
-rw-r--r--doc/classes/@GlobalScope.xml4
-rw-r--r--doc/classes/Directory.xml2
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: