diff --git a/utils/strings.lua b/utils/strings.lua index 4e8b059..aaf74c2 100644 --- a/utils/strings.lua +++ b/utils/strings.lua @@ -14,8 +14,8 @@ end -- the output of tonumber() is returned. -- Otherwise, the string is converted to a number via a simple hashing algorithm -- (caution: certainlly NOT crypto-secure!). - --- @source https://stackoverflow.com/a/2624210/1460422 +-- @param {string} str The string to convert. +-- @source https://stackoverflow.com/a/2624210/1460422 The idea came from here function M.makeseed(str) if type(str) == "number" then return str end if tonumber(str) ~= nil then return tonumber(str) end