more doc refixes

This commit is contained in:
VorTechnix 2024-10-16 19:57:55 -07:00
parent 63bdbdfac9
commit 0ffdb47b54
No known key found for this signature in database
GPG key ID: 091E91A69545D5BA

View file

@ -13,7 +13,7 @@ end
local validate = {}
--- Validate name
-- @param string name The name of the player to validate.
-- @param name string The name of the player to validate.
-- @returns boolean True if the name is valid, false otherwise.
validate.name = function(name)
if type(name) ~= "string" then
@ -30,12 +30,12 @@ validate.name = function(name)
end
--- Validate message
-- @param string message The message to validate.
-- @param message string The message to validate.
-- @returns boolean True if the message is a string, false otherwise.
validate.message = function(message) return type(message) == "string" end
--- Validate colour
-- @param string colour The colour to validate.
-- @param colour string The colour to validate.
-- @returns boolean True if the colour is valid, false otherwise.
validate.colour = function(colour)
return ( type(colour) == "string" and
@ -44,9 +44,9 @@ validate.colour = function(colour)
end
--- Validate all
-- @param string name The name of the player to validate.
-- @param string message The message to validate.
-- @param string colour The colour to validate.
-- @param name string The name of the player to validate.
-- @param message string The message to validate.
-- @param colour string The colour to validate.
-- @returns boolean, table|nil Returns the validation status, followed by details of the failure if bool == false.
-- | Return arg | Meaning |
-- |------------|---------|