Merge pull request #69964 from 0xafbf/fix-string-docs

Fix docstring for String.get_base_dir
This commit is contained in:
Yuri Sizov 2022-12-13 04:01:56 +03:00 committed by GitHub
commit 4828ac6b99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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>

View File

@ -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>