diff --git a/doc/source/classes/class_limbostate.rst b/doc/source/classes/class_limbostate.rst index 49d9522..5ca9bcb 100644 --- a/doc/source/classes/class_limbostate.rst +++ b/doc/source/classes/class_limbostate.rst @@ -273,7 +273,8 @@ Called during the update. Implement your state's behavior with this method. Registers a ``handler`` to be called when ``event`` is dispatched. The handler function should have the following signature: :: -func my_event_handler(cargo=null) -> void: + + func my_event_handler(cargo=null) -> void: Cargo is an optional parameter that can be passed to the handler. See also :ref:`dispatch`. diff --git a/doc_classes/LimboState.xml b/doc_classes/LimboState.xml index 4fc520f..e23c437 100644 --- a/doc_classes/LimboState.xml +++ b/doc_classes/LimboState.xml @@ -42,7 +42,9 @@ Registers a [param handler] to be called when [param event] is dispatched. The handler function should have the following signature: - [codeblock]func my_event_handler(cargo=null) -> void:[/codeblock] + [codeblock] + func my_event_handler(cargo=null) -> void: + [/codeblock] Cargo is an optional parameter that can be passed to the handler. See also [method dispatch].