Fixed grammar in "Awaiting for signals" end note (#5586)

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
Zshandi Krahn
2022-02-24 05:54:09 -08:00
committed by GitHub
parent 9621bed314
commit 66305cf83b

View File

@@ -1792,8 +1792,9 @@ This also means that returning a signal from a function that isn't a coroutine w
await get_signal()
print("Button was pressed")
.. note:: Unlike ``yield`` in previous Godot versions, you cannot obtain the function state object. This in spirit of
type-safety, because a function cannot say that returns an ``int`` but actually give a function state object
.. note:: Unlike ``yield`` in previous Godot versions, you cannot obtain the function state object.
This is done to ensure type safety.
With this type safety in place, a function cannot say that it returns an ``int`` while it actually returns a function state object
during runtime.
.. _doc_gdscript_onready_annotation: