summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/love-api.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/love-api.lua b/tools/love-api.lua
index 960cda46..aae38694 100644
--- a/tools/love-api.lua
+++ b/tools/love-api.lua
@@ -156,7 +156,7 @@ local function buildFunction(func, node, typeName)
for _, param in ipairs(func.variants[1].arguments or {}) do
for paramName in param.name:gmatch '[%a_][%w_]*' do
params[#params+1] = paramName
- local optional = (param.type == 'table' and isTableOptional(param.table) or param.default)
+ local optional = param.type == 'table' and isTableOptional(param.table) or param.default
text[#text+1] = ('---@param %s%s %s # %s'):format(
paramName,
optional and '?' or '',