Fix event handler signature example in docs

This commit is contained in:
Serhii Snitsaruk 2024-08-10 14:58:20 +02:00
parent 02af29f2fa
commit b4eec2c364
No known key found for this signature in database
GPG Key ID: A965EF8799FFEC2D
2 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ Registers a ``handler`` to be called when ``event`` is dispatched. The handler f
:: ::
func my_event_handler(cargo=null) -> void: func my_event_handler(cargo=null) -> bool:
Cargo is an optional parameter that can be passed to the handler. See also :ref:`dispatch<class_LimboState_method_dispatch>`. Cargo is an optional parameter that can be passed to the handler. See also :ref:`dispatch<class_LimboState_method_dispatch>`.

View File

@ -43,7 +43,7 @@
<description> <description>
Registers a [param handler] to be called when [param event] is dispatched. The handler function should have the following signature: Registers a [param handler] to be called when [param event] is dispatched. The handler function should have the following signature:
[codeblock] [codeblock]
func my_event_handler(cargo=null) -> void: func my_event_handler(cargo=null) -> bool:
[/codeblock] [/codeblock]
Cargo is an optional parameter that can be passed to the handler. See also [method dispatch]. Cargo is an optional parameter that can be passed to the handler. See also [method dispatch].
</description> </description>