]> code.delx.au - gnu-emacs/commitdiff
Further corrections to the pcase docstring
authorJohn Wiegley <johnw@newartisans.com>
Fri, 22 Jan 2016 17:55:52 +0000 (09:55 -0800)
committerJohn Wiegley <johnw@newartisans.com>
Fri, 22 Jan 2016 17:55:52 +0000 (09:55 -0800)
lisp/emacs-lisp/pcase.el

index a2e05245c31741af6eb587566e87e3fc72862558..549ee96dd5fbc0378fd83c3f54324e5653535735 100644 (file)
 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