Remove type hint from the @GDScript class documentation

The current consensus in the Godot documentation is to avoid using
type hints unless they're relevant to the behavior explained.
This commit is contained in:
Hugo Locurcio 2019-11-26 19:09:28 +01:00
parent ef1008e53a
commit 4f14a1f59c
No known key found for this signature in database
GPG Key ID: 39E8F8BE30B0A49C

View File

@ -1365,7 +1365,7 @@
If passed an object and a signal, the execution is resumed when the object emits the given signal. In this case, [code]yield()[/code] returns the argument passed to [code]emit_signal()[/code] if the signal takes only one argument, or an array containing all the arguments passed to [code]emit_signal()[/code] if the signal takes multiple arguments.
You can also use [code]yield[/code] to wait for a function to finish:
[codeblock]
func _ready -> void:
func _ready():
yield(do_something(), "completed")
yield(do_something_else(), "completed")
print("All functions are done!")