From 585e32157839f10ee29fd44e929444e6df17f4d1 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 5 Oct 2019 17:20:29 -0400 Subject: [PATCH] doc: Fix a regression from a recent commit. There was an off-by-one in the substring for the parameter names. --- docs/config.ld | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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