From 3b96c7e89c11652939889bbad47f9104f7389d8c Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Thu, 8 Sep 2022 22:27:43 +0200 Subject: [PATCH] :memo: update syntax for optional parameters --- doc/concept.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/concept.sh b/doc/concept.sh index f575134..f39a1c8 100644 --- a/doc/concept.sh +++ b/doc/concept.sh @@ -168,7 +168,7 @@ pxl|pixel|canv|canvas draw # the command scope "mycommand1" starts here # argument $1 is readonly; $2 is read/write; $3 and $4 are optional and will default to `null` -def mycommand1 $1 &$2 ($3 $4) +def mycommand1 $1 &$2 $3? $4? # current command scope ends here end