Skip to content

Commit

Permalink
Merge pull request #52241 from Rubonnek/fix-simplify-path-ret
Browse files Browse the repository at this point in the history
[3.x] Fix `String::simplify_path` return type
  • Loading branch information
Calinou authored Sep 3, 2021
2 parents d136ac7 + f5409e7 commit ef1c509
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/variant_call.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1688,7 +1688,7 @@ void register_variant_methods() {
ADDFUNC0R(STRING, BOOL, String, empty, varray());
ADDFUNC1R(STRING, STRING, String, humanize_size, INT, "size", varray());
ADDFUNC0R(STRING, BOOL, String, is_abs_path, varray());
ADDFUNC0R(STRING, BOOL, String, simplify_path, varray());
ADDFUNC0R(STRING, STRING, String, simplify_path, varray());
ADDFUNC0R(STRING, BOOL, String, is_rel_path, varray());
ADDFUNC0R(STRING, STRING, String, get_base_dir, varray());
ADDFUNC0R(STRING, STRING, String, get_file, varray());
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/String.xml
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@
</description>
</method>
<method name="simplify_path">
<return type="bool" />
<return type="String" />
<description>
Returns a simplified canonical path.
</description>
Expand Down

0 comments on commit ef1c509

Please sign in to comment.