瀏覽代碼

Fix docstring for String.get_base_dir

Andrés Botero 2 年之前
父節點
當前提交
3afe5d0c25
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      doc/classes/String.xml
  2. 1 1
      doc/classes/StringName.xml

+ 1 - 1
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>

+ 1 - 1
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>