diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2021-02-01 08:05:51 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2021-02-01 08:05:51 -0800 |
commit | 19e01d79bc89115c73f2a953bd77b9a9acb9d326 (patch) | |
tree | 47ceb5d43525bb21a977c54e7af93ddbfe543b7b | |
parent | d6c12a2fe298112844c032c7a5f439c2dfb4ada1 (diff) | |
download | txr-19e01d79bc89115c73f2a953bd77b9a9acb9d326.tar.gz txr-19e01d79bc89115c73f2a953bd77b9a9acb9d326.tar.bz2 txr-19e01d79bc89115c73f2a953bd77b9a9acb9d326.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.1 | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |