From 3afe5d0c25391b7dc828663b1da1013c15415f2e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andr=C3=A9s=20Botero?= <0xafbf@gmail.com>
Date: Mon, 12 Dec 2022 09:51:33 -0600
Subject: [PATCH] Fix docstring for String.get_base_dir
---
doc/classes/String.xml | 2 +-
doc/classes/StringName.xml | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/classes/String.xml b/doc/classes/String.xml
index d5624aeaa26..653d53607e7 100644
--- a/doc/classes/String.xml
+++ b/doc/classes/String.xml
@@ -237,7 +237,7 @@
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]
diff --git a/doc/classes/StringName.xml b/doc/classes/StringName.xml
index e3cb6517f34..44d78a46fb6 100644
--- a/doc/classes/StringName.xml
+++ b/doc/classes/StringName.xml
@@ -220,7 +220,7 @@
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]