aboutsummaryrefslogtreecommitdiff
path: root/doc/classes/@GDScript.xml
diff options
context:
space:
mode:
authorPoommetee Ketson2017-12-29 19:11:27 +0700
committerPoommetee Ketson2017-12-31 03:19:52 +0700
commit7753b8ba0f41cdd9c32dbbb4b43c64d968eb0464 (patch)
tree68ae8a2cf21e8d1cf60d594a2ed1e3f6c256d796 /doc/classes/@GDScript.xml
parentf11a1385054376bdc4cc01e6aa20d63508a5e6d4 (diff)
downloadgodot-7753b8ba0f41cdd9c32dbbb4b43c64d968eb0464.tar.gz
godot-7753b8ba0f41cdd9c32dbbb4b43c64d968eb0464.tar.zst
godot-7753b8ba0f41cdd9c32dbbb4b43c64d968eb0464.zip
Minor docs fix
Diffstat (limited to 'doc/classes/@GDScript.xml')
-rw-r--r--doc/classes/@GDScript.xml5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/classes/@GDScript.xml b/doc/classes/@GDScript.xml
index bee2cdf38..cd05c8334 100644
--- a/doc/classes/@GDScript.xml
+++ b/doc/classes/@GDScript.xml
@@ -535,7 +535,7 @@
<argument index="0" name="path" type="String">
</argument>
<description>
- Loads a resource from the filesystem located at 'path'. Note: resource paths can be obtained by right clicking on a resource in the Assets Panel and choosing "Copy Path".
+ Loads a resource from the filesystem located at [code]path[/code]. Note: resource paths can be obtained by right clicking on a resource in the Assets Panel and choosing "Copy Path".
[codeblock]
# load a scene called main located in the root of the project directory
var main = load("res://main.tscn")
@@ -866,9 +866,10 @@
<argument index="0" name="s" type="float">
</argument>
<description>
- Returns sign of [code]s[/code] -1 or 1.
+ Returns the sign of [code]s[/code]: -1 or 1. Returns 0 if [code]s[/code] is 0.
[codeblock]
sign(-6) # returns -1
+ sign(0) # returns 0
sign(6) # returns 1
[/codeblock]
</description>