From 52c30a8dd100f7ccf54ae455194ad61a3a4c9fc6 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Thu, 17 Oct 2024 02:01:04 +0100 Subject: [PATCH] safe_function: fix docblock docs --- worldeditadditions_core/core/safe_function.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/worldeditadditions_core/core/safe_function.lua b/worldeditadditions_core/core/safe_function.lua index a9b9d92..7808bcc 100644 --- a/worldeditadditions_core/core/safe_function.lua +++ b/worldeditadditions_core/core/safe_function.lua @@ -66,9 +66,9 @@ end -- WARNING: Do NOT nest `safe_function()` calls!!! -- @param fn function The function to call -- @param args table The table of args to unpack and send to `fn` as arguments --- @param string|nil player_name The name of the player affected. If nil then no message is sent to the player. --- @param string error_msg The error message to send when `fn` inevitably crashes. --- @param string|nil cmdname Optional. The name of the command being run. +-- @param player_name string|nil The name of the player affected. If nil then no message is sent to the player. +-- @param error_msg string The error message to send when `fn` inevitably crashes. +-- @param cmdname string|nil Optional. The name of the command being run. -- @returns bool,any,... A success bool (true == success), and then if success == true the rest of the arguments are the (unpacked) return values from the function called. If success == false, then the 2nd argument will be the stack trace. local function safe_function(fn, args, player_name, error_msg, cmdname) local retvals