Bladeren bron

Apply suggestions from code review

Hugo Locurcio 4 jaren geleden
bovenliggende
commit
e27d64924f
1 gewijzigde bestanden met toevoegingen van 5 en 5 verwijderingen
  1. 5 5
      getting_started/scripting/gdscript/gdscript_basics.rst

+ 5 - 5
getting_started/scripting/gdscript/gdscript_basics.rst

@@ -1591,19 +1591,19 @@ You can also get the signal's argument once it's emitted by an object:
     # Wait for when any node is added to the scene tree.
     var node = yield(get_tree(), "node_added")
 
-If there are more than one argument ``yield`` returns an array containing
-the arguments:
-
-::
+If there is more than one argument, ``yield`` returns an array containing
+the arguments::
 
     signal done(input, processed)
+    
     func process_input(input):
         print("Processing initialized")
         yield(get_tree(), "idle_frame")
         print("Waiting")
         yield(get_tree(), "idle_frame")
         emit_signal(input, "Processed " + input)
-    
+
+
     func _ready():
         process_input("Test") # Prints: Processing initialized
         var data = yield(self, "done") # Prints: waiting