aboutsummaryrefslogtreecommitdiff
path: root/doc/classes/@GDScript.xml
diff options
context:
space:
mode:
authorRémi Verschelde2017-09-17 18:57:13 +0200
committerRémi Verschelde2017-09-17 18:57:17 +0200
commit574a5714dcbf5fcf126f3f99caab62a345e665c1 (patch)
treefd213f0300b118ba042f5e83d9aafdbe33feb170 /doc/classes/@GDScript.xml
parent07d18a00763855908856bdaee868bd4ca8deb52f (diff)
downloadgodot-574a5714dcbf5fcf126f3f99caab62a345e665c1.tar.gz
godot-574a5714dcbf5fcf126f3f99caab62a345e665c1.tar.zst
godot-574a5714dcbf5fcf126f3f99caab62a345e665c1.zip
doc: Sync classref and escape comparators
[ci skip]
Diffstat (limited to 'doc/classes/@GDScript.xml')
-rw-r--r--doc/classes/@GDScript.xml8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml
index 511109e61..7b120afa5 100644
--- a/doc/classes/@GDScript.xml
+++ b/doc/classes/@GDScript.xml
@@ -96,9 +96,9 @@
[codeblock]
# Speed should always be between 0 and 20
speed = -10
- assert(speed < 20) # Is true and program continues
- assert(speed >= 0) # Is false and program stops
- assert(speed >= 0 &amp;&amp; speed < 20) # Or combined
+ assert(speed &lt; 20) # Is true and program continues
+ assert(speed &gt;= 0) # Is false and program stops
+ assert(speed &gt;= 0 &amp;&amp; speed &lt; 20) # Or combined
[/codeblock]
</description>
</method>
@@ -360,7 +360,7 @@
Returns the floating-point remainder of x/y that wraps equally in positive and negative.
[codeblock]
var i = -10;
- while i < 0:
+ while i &lt; 0:
prints(i, fposmod(i, 10))
i += 1
[/codeblock]