summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2021-02-01 08:05:51 -0800
committerKaz Kylheku <kaz@kylheku.com>2021-02-01 08:05:51 -0800
commit8d409a3da09e4856afb0f0a5b83788121d99806a (patch)
tree47ceb5d43525bb21a977c54e7af93ddbfe543b7b
parent8b3280908b962ed5f0e15993a4b7006aa9acabd6 (diff)
downloadtxr-8d409a3da09e4856afb0f0a5b83788121d99806a.tar.gz
txr-8d409a3da09e4856afb0f0a5b83788121d99806a.tar.bz2
txr-8d409a3da09e4856afb0f0a5b83788121d99806a.zip
doc: mistake in example for @[...] pattern.
* txr.1: Fix use of nonexistent odd function which should be oddp. The same example occurs in the test suite, but without this error. Also fix indentation in this and the two related examples above.
-rw-r--r--txr.16
1 files changed, 3 insertions, 3 deletions
diff --git a/txr.1 b/txr.1
index 05112c5e..4d47bbe8 100644
--- a/txr.1
+++ b/txr.1
@@ -40643,17 +40643,17 @@ or
;; use hash table as predicate:
(let ((h #H(() (a 1) (b 2))))
- (when-match @[h x] 'a x))
+ (when-match @[h x] 'a x))
-> a
;; as above, also capture hash value
(let ((h #H(() (a 1) (b 2))))
- (when-match @[h x y] 'a (list x y)))
+ (when-match @[h x y] 'a (list x y)))
-> (a 1)
;; as above, also capture hash value, if odd
(let ((h #H(() (a 1) (b 2))))
- (when-match @[h x @(odd y)] 'a (list x y)))
+ (when-match @[h x @(oddp y)] 'a (list x y)))
-> (a 1)
.brev