diff --git a/doc/events/computer_command.md b/doc/events/computer_command.md index 245252399..76c8a2285 100644 --- a/doc/events/computer_command.md +++ b/doc/events/computer_command.md @@ -6,7 +6,7 @@ The @{computer_command} event is fired when the `/computercraft queue` command i ## Return Values 1. @{string}: The event name. -... @{string}: The arguments passed to the command. +2. @{string}: The arguments passed to the command. ## Example Prints the contents of messages sent: diff --git a/doc/events/redstone.md b/doc/events/redstone.md index 0c199ee5d..6c0c6df2a 100644 --- a/doc/events/redstone.md +++ b/doc/events/redstone.md @@ -4,6 +4,9 @@ module: [kind=event] redstone The @{event!redstone} event is fired whenever any redstone inputs on the computer change. +## Return values +1. @{string}: The event name. + ## Example Prints a message when a redstone input changes: ```lua diff --git a/doc/events/task_complete.md b/doc/events/task_complete.md index eddec51d2..89ce1d164 100644 --- a/doc/events/task_complete.md +++ b/doc/events/task_complete.md @@ -10,7 +10,7 @@ The @{task_complete} event is fired when an asynchronous task completes. This is 2. @{number}: The ID of the task that completed. 3. @{boolean}: Whether the command succeeded. 4. @{string}: If the command failed, an error message explaining the failure. (This is not present if the command succeeded.) -...: Any parameters returned from the command. +5. : Any parameters returned from the command. ## Example Prints the results of an asynchronous command: diff --git a/doc/events/term_resize.md b/doc/events/term_resize.md index cfd691468..8abf16f6f 100644 --- a/doc/events/term_resize.md +++ b/doc/events/term_resize.md @@ -9,6 +9,9 @@ The @{term_resize} event is fired when the main terminal is resized. For instanc When this event fires, some parts of the terminal may have been moved or deleted. Simple terminal programs (those not using @{term.setCursorPos}) can ignore this event, but more complex GUI programs should redraw the entire screen. +## Return values +1. @{string}: The event name. + ## Example Print a message each time the terminal is resized. diff --git a/doc/events/terminate.md b/doc/events/terminate.md index 0760b8c3b..f5d48540d 100644 --- a/doc/events/terminate.md +++ b/doc/events/terminate.md @@ -8,6 +8,9 @@ This event is normally handled by @{os.pullEvent}, and will not be returned. How @{terminate} will be sent even when a filter is provided to @{os.pullEventRaw}. When using @{os.pullEventRaw} with a filter, make sure to check that the event is not @{terminate}. +## Return values +1. @{string}: The event name. + ## Example Prints a message when Ctrl-T is held: ```lua diff --git a/doc/events/turtle_inventory.md b/doc/events/turtle_inventory.md index bc9392b6b..3bd865dd4 100644 --- a/doc/events/turtle_inventory.md +++ b/doc/events/turtle_inventory.md @@ -4,6 +4,9 @@ module: [kind=event] turtle_inventory The @{turtle_inventory} event is fired when a turtle's inventory is changed. +## Return values +1. @{string}: The event name. + ## Example Prints a message when the inventory is changed: ```lua