Преглед изворни кода

Merge pull request #33923 from Calinou/doc-gdscript-remove-type-hint

Remove type hint from the @GDScript class documentation
Rémi Verschelde пре 5 година
родитељ
комит
c1e125af52
1 измењених фајлова са 3 додато и 3 уклоњено
  1. 3 3
      modules/gdscript/doc_classes/@GDScript.xml

+ 3 - 3
modules/gdscript/doc_classes/@GDScript.xml

@@ -1365,17 +1365,17 @@
 				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!")
 
 				func do_something():
 				    print("Something is done!")
-				
+
 				func do_something_else():
 				    print("Something else is done!")
-				
+
 				# prints:
 				# Something is done!
 				# Something else is done!