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:
Earl Hyatt 2026-08-29 18:12:30 -04:00 committed by Stefan Monnier
parent 4577a7c55e
commit 24fc3c0592

View file

@ -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)))