Explorar o código

Merge pull request #37452 from zak-grumbles/thread_start_docs_fix

Clarify docs for Thread.start() godotengine#36032
Rémi Verschelde %!s(int64=5) %!d(string=hai) anos
pai
achega
ece425ace4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      doc/classes/Thread.xml

+ 1 - 1
doc/classes/Thread.xml

@@ -36,7 +36,7 @@
 			<argument index="3" name="priority" type="int" enum="Thread.Priority" default="1">
 			<argument index="3" name="priority" type="int" enum="Thread.Priority" default="1">
 			</argument>
 			</argument>
 			<description>
 			<description>
-				Starts a new [Thread] that runs [code]method[/code] on object [code]instance[/code] with [code]userdata[/code] passed as an argument. The [code]priority[/code] of the [Thread] can be changed by passing a value from the [enum Priority] enum.
+				Starts a new [Thread] that runs [code]method[/code] on object [code]instance[/code] with [code]userdata[/code] passed as an argument. Even if no userdata is passed, [code]method[/code] must accept one argument and it will be null. The [code]priority[/code] of the [Thread] can be changed by passing a value from the [enum Priority] enum.
 				Returns [constant OK] on success, or [constant ERR_CANT_CREATE] on failure.
 				Returns [constant OK] on success, or [constant ERR_CANT_CREATE] on failure.
 			</description>
 			</description>
 		</method>
 		</method>