summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-08-12 20:36:20 +0200
committerGitHub <noreply@github.com>2021-08-12 20:36:20 +0200
commit244295a0c2bfc49b927601e236a4a286dda82f56 (patch)
tree5611fd3e960f21261e0a9ece1c234f5bfb056ffd /doc
parent5e0838c58e62553c66c632e36a802a73b9fa57a2 (diff)
parent1942e0c1171dbd5a00d323114106cf4714608d18 (diff)
Merge pull request #51579 from Calinou/doc-editorfilesystem-get-file-type
Fix incorrect descriptions for EditorFileSystem's `get_file_type()`
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/EditorFileSystem.xml2
-rw-r--r--doc/classes/EditorFileSystemDirectory.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/EditorFileSystem.xml b/doc/classes/EditorFileSystem.xml
index 6b4a2b03a3..6befe32e7a 100644
--- a/doc/classes/EditorFileSystem.xml
+++ b/doc/classes/EditorFileSystem.xml
@@ -14,7 +14,7 @@
<return type="String" />
<argument index="0" name="path" type="String" />
<description>
- Gets the type of the file, given the full path.
+ Returns the resource type of the file, given the full path. This returns a string such as [code]"Resource"[/code] or [code]"GDScript"[/code], [i]not[/i] a file extension such as [code]".gd"[/code].
</description>
</method>
<method name="get_filesystem">
diff --git a/doc/classes/EditorFileSystemDirectory.xml b/doc/classes/EditorFileSystemDirectory.xml
index 28793cb8af..a8f94101a7 100644
--- a/doc/classes/EditorFileSystemDirectory.xml
+++ b/doc/classes/EditorFileSystemDirectory.xml
@@ -68,7 +68,7 @@
<return type="StringName" />
<argument index="0" name="idx" type="int" />
<description>
- Returns the file extension of the file at index [code]idx[/code].
+ Returns the resource type of the file at index [code]idx[/code]. This returns a string such as [code]"Resource"[/code] or [code]"GDScript"[/code], [i]not[/i] a file extension such as [code]".gd"[/code].
</description>
</method>
<method name="get_name">