summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorYuri Sizov <11782833+YuriSizov@users.noreply.github.com>2022-12-13 04:01:56 +0300
committerGitHub <noreply@github.com>2022-12-13 04:01:56 +0300
commit4828ac6b9931ee2ea606cf47c68604b1a2b2d3ed (patch)
tree448b08f0dbfc0d90c3dc0d8860332b3f21e4a111 /doc/classes
parentba4bd7f00971a94c20d90e7d2c665d5eb0ae1b90 (diff)
parent3afe5d0c25391b7dc828663b1da1013c15415f2e (diff)
Merge pull request #69964 from 0xafbf/fix-string-docs
Fix docstring for String.get_base_dir
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/String.xml2
-rw-r--r--doc/classes/StringName.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index d5624aeaa2..653d53607e 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -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>
diff --git a/doc/classes/StringName.xml b/doc/classes/StringName.xml
index e3cb6517f3..44d78a46fb 100644
--- a/doc/classes/StringName.xml
+++ b/doc/classes/StringName.xml
@@ -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>