1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-09 07:40:39 -08:00

Further corrections to the pcase docstring

This commit is contained in:
John Wiegley 2016-01-22 09:55:52 -08:00
parent 669d30b217
commit f7dc6d8b5b

View file

@ -111,8 +111,8 @@
CASES is a list of elements of the form (PATTERN CODE...).
A structural PATTERN describes a template that identifies a class
of values. For example, the pattern (foo bar) matches any two
element list, binding its elements to symbols named `foo' and
of values. For example, the pattern `(,foo ,bar) matches any
two element list, binding its elements to symbols named `foo' and
`bar' -- in much the same way that `cl-destructuring-bind' would.
A significant difference from `cl-destructuring-bind' is that, if
@ -120,7 +120,7 @@ a pattern match fails, the next case is tried until either a
succesful match is found or there are no more cases.
Another difference is that pattern elements may be backquoted,
meaning they must match exactly: The pattern (\\='foo \\='bar)
meaning they must match exactly: The pattern \\='(foo bar)
matches only against two element lists containing the symbols
`foo' and `bar' in that order. (As a short-hand, atoms always
match themselves, such as numbers or strings, and need not be