Remove unnecessary parenthesis from code examples

This commit is contained in:
Michael Alexsander 2020-01-23 14:15:39 -03:00
parent ac4e487237
commit e1a9a3328d
2 changed files with 3 additions and 3 deletions

View file

@ -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>

View file

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