]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/emacs-lisp/radix-tree.el (pcase-defmacro): Improve docstring
authorStefan Monnier <monnier@iro.umontreal.ca>
Sat, 20 Apr 2019 03:31:59 +0000 (23:31 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Sat, 20 Apr 2019 03:31:59 +0000 (23:31 -0400)
lisp/emacs-lisp/radix-tree.el

index 75d9874b431be69bb164de5f52c5ea10df5d8102..dd65e1a0b4e1d96647d4499fe145616dd4cf4a29 100644 (file)
@@ -196,8 +196,8 @@ If not found, return nil."
 
 (eval-and-compile
   (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))))