mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2026-09-10 07:46:51 -04:00
Fix the documentation of pcase-let*-strict
* lisp/emacs-lisp/pcase.el (pcase-let*-strict): Fix the documentation to say that 'pcase-let*-strict' always signals an error when a pattern does not match. This is the intended difference between 'pcase-let*-strict' and 'pcase-let*'. The previous text, copied from 'pcase-let*', stated that 'pcase-let*-strict' "may" error, incorrectly suggesting that it also may not.
This commit is contained in:
parent
4577a7c55e
commit
24fc3c0592
|
|
@ -313,14 +313,10 @@ undetected, binding variables to arbitrary values, such as nil."
|
|||
|
||||
;;;###autoload
|
||||
(defmacro pcase-let*-strict (bindings &rest body)
|
||||
"Like `pcase-let*', but signal an error when a pattern does not match.
|
||||
As with `pcase-let*', BINDINGS are of the form (PATTERN EXP), but the
|
||||
"Like `pcase-let*', but always signal an error when a pattern does not match.
|
||||
As with `pcase-let*', BINDINGS are of the form (PATTERN EXP), and the
|
||||
EXP in each binding in BINDINGS can use the results of the destructuring
|
||||
bindings that precede it in BINDINGS' order.
|
||||
|
||||
Each EXP should match its respective PATTERN (i.e. be of structure
|
||||
compatible to PATTERN); a mismatch may signal an error or may go
|
||||
undetected, binding variables to arbitrary values, such as nil."
|
||||
bindings that precede it in BINDINGS' order."
|
||||
(declare (indent 1)
|
||||
(debug ((&rest (pcase-PAT &optional form)) body)))
|
||||
(let ((cached (gethash bindings pcase--memoize)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue