diff options
author | Robert Cochran <robert-git@cochranmail.com> | 2016-08-19 14:53:07 -0700 |
---|---|---|
committer | Nicolas Petton <nicolas@petton.fr> | 2016-08-20 00:41:43 +0200 |
commit | a4ba426d25bd6a5cbe11d81b82a789b8a2c948ed (patch) | |
tree | 7ccb0788555e3042edcca78c86fe21d5e3ab2680 /lisp/emacs-lisp/map.el | |
parent | 4a80c8bb276de0fdb1f9ddb8f1c1cf7d57d30918 (diff) | |
download | emacs-a4ba426d25bd6a5cbe11d81b82a789b8a2c948ed.tar.gz |
* lisp/emacs-lisp/map.el (map--dispatch): Fix docstring
The docstring referenced a non-existant parameter, as well as a
parameter that has been renamed since the docstring was written. Fix
both errors, fixing (Bug#24182).
Diffstat (limited to 'lisp/emacs-lisp/map.el')
-rw-r--r-- | lisp/emacs-lisp/map.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/map.el b/lisp/emacs-lisp/map.el index 98a88711aa5..0a0f64a0761 100644 --- a/lisp/emacs-lisp/map.el +++ b/lisp/emacs-lisp/map.el @@ -79,14 +79,14 @@ MAP can be a list, hash-table or array." (eval-when-compile (defmacro map--dispatch (map-var &rest args) - "Evaluate one of the forms specified by ARGS based on the type of MAP. + "Evaluate one of the forms specified by ARGS based on the type of MAP-VAR. The following keyword types are meaningful: `:list', `:hash-table' and `:array'. -An error is thrown if MAP is neither a list, hash-table nor array. +An error is thrown if MAP-VAR is neither a list, hash-table nor array. -Return RESULT if non-nil or the result of evaluation of the form." +Returns the result of evaluating the form associated with MAP-VAR's type." (declare (debug t) (indent 1)) `(cond ((listp ,map-var) ,(plist-get args :list)) ((hash-table-p ,map-var) ,(plist-get args :hash-table)) |