I found this Lua code:
function displayName(name)
name, _ = name:gsub("{", "\\{")
return name
end
and again:
function parsePath(path)
if type(path) == "string" then path, _ = path:gsub("\\", "/") end
return path
end
I understand what the code does.. what I don't understand is that , _ (comma underscore) between the variable name and the assignation part (=).. so this one name, _ = name:gsub("{", "\\{") and this one ..then path, _ = path:gsub("\\", "/")
Can someone explain to me the meaning of that thing ?
Wouldn't be name = name:gsub(....) or ..then path = path:gsub(...) the same ?
So why the script is written this way ?