Skip to content

Commit

Permalink
Merge pull request #69964 from 0xafbf/fix-string-docs
Browse files Browse the repository at this point in the history
Fix docstring for String.get_base_dir
  • Loading branch information
YuriSizov authored Dec 13, 2022
2 parents ba4bd7f + 3afe5d0 commit 4828ac6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/classes/String.xml
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@
<description>
If the string is a valid file path, returns the base directory name.
[codeblock]
var dir_path = "/path/to/file.txt".get_basename() # dir_path is "/path/to"
var dir_path = "/path/to/file.txt".get_base_dir() # dir_path is "/path/to"
[/codeblock]
</description>
</method>
Expand Down
2 changes: 1 addition & 1 deletion doc/classes/StringName.xml
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@
<description>
If the string is a valid file path, returns the base directory name.
[codeblock]
var dir_path = "/path/to/file.txt".get_basename() # dir_path is "/path/to"
var dir_path = "/path/to/file.txt".get_base_dir() # dir_path is "/path/to"
[/codeblock]
</description>
</method>
Expand Down

0 comments on commit 4828ac6

Please sign in to comment.