summaryrefslogtreecommitdiff
path: root/core/variant
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-06-12 10:45:58 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-06-12 16:34:44 +0800
commit6f38c21253acf759230ea2e3300cb84df672fbcd (patch)
tree6b3b89114dead596ccf853ce17f082321cae23b8 /core/variant
parentd4235f51b1a88e48d676b877422fb121d326935c (diff)
Fix parameter name for String.left and String.right
Diffstat (limited to 'core/variant')
-rw-r--r--core/variant/variant_call.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/variant/variant_call.cpp b/core/variant/variant_call.cpp
index 741d3e5b8f..b335f2fcf4 100644
--- a/core/variant/variant_call.cpp
+++ b/core/variant/variant_call.cpp
@@ -1402,8 +1402,8 @@ static void _register_variant_builtin_methods() {
bind_method(String, to_upper, sarray(), varray());
bind_method(String, to_lower, sarray(), varray());
- bind_method(String, left, sarray("position"), varray());
- bind_method(String, right, sarray("position"), varray());
+ bind_method(String, left, sarray("length"), varray());
+ bind_method(String, right, sarray("length"), varray());
bind_method(String, strip_edges, sarray("left", "right"), varray(true, true));
bind_method(String, strip_escapes, sarray(), varray());