* lisp/emacs-lisp/pcase.el (pcase-dolist): Add a docstring.

This commit is contained in:
Mark Oteiza 2016-11-04 10:23:46 -04:00
parent 6a4158022e
commit abe594c099

View file

@ -298,6 +298,8 @@ any kind of error."
;;;###autoload
(defmacro pcase-dolist (spec &rest body)
"Like `dolist' but where the binding can be a `pcase' pattern.
\n(fn (PATTERN LIST) BODY...)"
(declare (indent 1) (debug ((pcase-PAT form) body)))
(if (pcase--trivial-upat-p (car spec))
`(dolist ,spec ,@body)