diff --git a/docs/config.ld b/docs/config.ld index 3ac6d98fc..398ef1a24 100644 --- a/docs/config.ld +++ b/docs/config.ld @@ -180,6 +180,7 @@ end local named_args = { [ "(args)" ] = true, + [ "([args])" ] = true, [ "([args=nil])" ] = true, [ "([args={}])" ] = true } @@ -193,7 +194,7 @@ local function wrap_args(item) return "{[args]}" end - local new_args = item.args:sub(2, item.args:len()-2) + local new_args = item.args:sub(2, item.args:len()-1) return " ("..new_args..")" end