mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Updates docs for GDScript built-in functions
* Adds description for `ord()` * Adds relationship description between `char()` and `ord()` * Describes the argument of `char()` as Unicode code point instead of ASCII code * Fixes wrong interval notation in `randi()` description
This commit is contained in:
parent
ce7d3bb1c7
commit
468fcd80bb
2 changed files with 13 additions and 4 deletions
|
@ -1855,7 +1855,7 @@ MethodInfo GDScriptFunctions::get_info(Function p_func) {
|
|||
} break;
|
||||
case TEXT_CHAR: {
|
||||
|
||||
MethodInfo mi("char", PropertyInfo(Variant::INT, "ascii"));
|
||||
MethodInfo mi("char", PropertyInfo(Variant::INT, "code"));
|
||||
mi.return_val.type = Variant::STRING;
|
||||
return mi;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue