summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/love-api.lua2
-rw-r--r--tools/lovr-api.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/tools/love-api.lua b/tools/love-api.lua
index 767a66c3..322393bf 100644
--- a/tools/love-api.lua
+++ b/tools/love-api.lua
@@ -137,7 +137,7 @@ local function buildDocFunc(variant, overload)
params[#params+1] = '...'
else
if param.name:find '^[\'"]' then
- params[#params+1] = ('%s%s: %s|%s'):format(param.name, getOptional(param), getTypeName(param.type), param.name)
+ params[#params+1] = ('%s%s: %s|%s'):format(param.name:sub(2, -2), getOptional(param), getTypeName(param.type), param.name)
else
params[#params+1] = ('%s%s: %s'):format(param.name, getOptional(param), getTypeName(param.type))
end
diff --git a/tools/lovr-api.lua b/tools/lovr-api.lua
index 4c4831fb..573eea9e 100644
--- a/tools/lovr-api.lua
+++ b/tools/lovr-api.lua
@@ -132,7 +132,7 @@ local function buildDocFunc(variant, overload)
params[#params+1] = '...'
else
if param.name:find '^[\'"]' then
- params[#params+1] = ('%s%s: %s|%s'):format(param.name, getOptional(param), getTypeName(param.type), param.name)
+ params[#params+1] = ('%s%s: %s|%s'):format(param.name:sub(2, -2), getOptional(param), getTypeName(param.type), param.name)
else
params[#params+1] = ('%s%s: %s'):format(param.name, getOptional(param), getTypeName(param.type))
end