Commit 69771b4e authored by Stefan Monnier's avatar Stefan Monnier

* lisp/emacs-lisp/radix-tree.el (pcase-defmacro): Improve docstring

parent 4c85e3f7
Pipeline #1368 failed with stage
in 80 minutes and 36 seconds
......@@ -196,8 +196,8 @@ If not found, return nil."
(pcase-defmacro radix-tree-leaf (vpat)
"Build a `pcase' pattern that matches radix-tree leaf EXPVAL.
VPAT is a `pcase' pattern to extract the value."
"Pattern which matches a radix-tree leaf.
The pattern VPAT is matched against the leaf's carried value."
;; FIXME: We'd like to use a negative pattern (not consp), but pcase
;; doesn't support it. Using `atom' works but generates sub-optimal code.
`(or `(t . ,,vpat) (and (pred atom) ,vpat))))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment