浏览代码

Change the documentation to reflect that Directory.list_dir_begin()
returns true (not false) when a stream could not be initialized. (See, for
example,
https://github.com/godotengine/godot/blob/master/drivers/windows/dir_access_windows.cpp#L76
)

Gastronok 9 年之前
父节点
当前提交
cd82fafd58
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      doc/base/classes.xml

+ 1 - 1
doc/base/classes.xml

@@ -10871,7 +10871,7 @@
 			</return>
 			<description>
 				Initialise the stream used to list all files and directories using the [method get_next] function, closing the current opened stream if needed. Once the stream has been processed, it should typically be closed with [method list_dir_end].
-				Return false if the stream could not be initialised.
+				Return true if the stream could not be initialised.
 			</description>
 		</method>
 		<method name="list_dir_end">