aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-04-22 21:00:50 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-04-22 21:00:50 -0700
commit83cca68f449d207c2a8862e3ef3a6e815cb02e91 (patch)
treeb25e4779326021f079278c422097e64ef017345a
parent5391ff9e629ea65789791e86efad29fe027b264c (diff)
downloadcppawk-83cca68f449d207c2a8862e3ef3a6e815cb02e91.tar.gz
cppawk-83cca68f449d207c2a8862e3ef3a6e815cb02e91.tar.bz2
cppawk-83cca68f449d207c2a8862e3ef3a6e815cb02e91.zip
cons man page: tweak optional arg syntax.
-rw-r--r--cppawk-cons.18
1 files changed, 4 insertions, 4 deletions
diff --git a/cppawk-cons.1 b/cppawk-cons.1
index 049d802..86393c1 100644
--- a/cppawk-cons.1
+++ b/cppawk-cons.1
@@ -85,8 +85,8 @@ cons \- Lisp-like data representation and control flow macros
nthcdr(\fIi\fP, \fIx\fP) \fI// suffix of x starting at i-th item\fP
ldiff(\fIx\fP, \fIy\fP) \fI// prefix of x omitting suffix y.\fP
- last(\fIx\fP, [\fIn\fP]) \fI// suffix of x of length n, defaulting to 1.\fP
- butlast(\fIx\fP, [\fIn\fP]) \fI// prefix of x omitting last n, defaulting to 1.\fP
+ last(\fIx\fP[, \fIn\fP]) \fI// suffix of x of length n, defaulting to 1.\fP
+ butlast(\fIx\fP[, \fIn\fP]) \fI// prefix of x omitting last n, defaulting to 1.\fP
reverse(\fIx\fP) \fI// reverse list x\fP
@@ -1462,8 +1462,8 @@ Syntax:
.ft B
ldiff(\fIx\fP, \fIy\fP)
- last(\fIx\fP, [\fIn\fP])
- butlast(\fIx\fP, [\fIn\fP])
+ last(\fIx\fP[, \fIn\fP])
+ butlast(\fIx\fP[, \fIn\fP])
.ft R
.B Description