summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/map.el
diff options
context:
space:
mode:
authorNicolas Petton <nicolas@petton.fr>2015-06-04 22:26:22 +0200
committerNicolas Petton <nicolas@petton.fr>2015-06-04 22:26:22 +0200
commitcfb35800a8765b3458751bd6992a348f97843894 (patch)
tree78e08350dd7b17dd29f641f5559d7dae90925681 /lisp/emacs-lisp/map.el
parent988d72118687758af6c2b7c56c80056630d428ca (diff)
downloademacs-cfb35800a8765b3458751bd6992a348f97843894.tar.gz
* lisp/emacs-lisp/map.el: Better docstring for the map pcase macro.
Diffstat (limited to 'lisp/emacs-lisp/map.el')
-rw-r--r--lisp/emacs-lisp/map.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el
index dea2abcb0e8..46c795840b0 100644
--- a/lisp/emacs-lisp/map.el
+++ b/lisp/emacs-lisp/map.el
@@ -49,7 +49,8 @@
Matches if the object is a map (list, hash-table or array), and
binds values from ARGS to the corresponding element of the map.
-ARGS can be an alist of key/binding pairs of a list of keys."
+ARGS can be a list elements of the form (KEY . PAT) or elements
+of the form SYMBOL, which stands for (SYMBOL . SYMBOL)."
`(and (pred map-p)
,@(map--make-pcase-bindings args)))