diff options
| author | Rémi Verschelde | 2018-01-03 12:17:06 +0100 |
|---|---|---|
| committer | GitHub | 2018-01-03 12:17:06 +0100 |
| commit | 4be31e37b0a6ef52ae17e6c67380c4952adb48fc (patch) | |
| tree | a99b3c14e3ebea9dff60ea1754c6152117525497 /doc/classes/@GDScript.xml | |
| parent | ffd6838704baaa4dac3b260a550946f43d925f7c (diff) | |
| parent | 7753b8ba0f41cdd9c32dbbb4b43c64d968eb0464 (diff) | |
| download | godot-4be31e37b0a6ef52ae17e6c67380c4952adb48fc.tar.gz godot-4be31e37b0a6ef52ae17e6c67380c4952adb48fc.tar.zst godot-4be31e37b0a6ef52ae17e6c67380c4952adb48fc.zip | |
Merge pull request #15157 from Noshyaar/prdocs
[DOCS] Minor docs fix
Diffstat (limited to 'doc/classes/@GDScript.xml')
| -rw-r--r-- | doc/classes/@GDScript.xml | 5 |
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> |
