aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Wiegley2016-01-22 09:55:52 -0800
committerJohn Wiegley2016-01-22 09:55:52 -0800
commitf7dc6d8b5bb318e02a4016d93f8b34de0716f4dc (patch)
tree9a250aa54f7487c26d24721971a7f897288c9355
parent669d30b2173dfbfe9658320baf79e1b504fb89b1 (diff)
downloademacs-f7dc6d8b5bb318e02a4016d93f8b34de0716f4dc.tar.gz
emacs-f7dc6d8b5bb318e02a4016d93f8b34de0716f4dc.zip
Further corrections to the pcase docstring
-rw-r--r--lisp/emacs-lisp/pcase.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/pcase.el b/lisp/emacs-lisp/pcase.el
index a2e05245c31..549ee96dd5f 100644
--- a/lisp/emacs-lisp/pcase.el
+++ b/lisp/emacs-lisp/pcase.el
@@ -111,8 +111,8 @@
111CASES is a list of elements of the form (PATTERN CODE...). 111CASES is a list of elements of the form (PATTERN CODE...).
112 112
113A structural PATTERN describes a template that identifies a class 113A structural PATTERN describes a template that identifies a class
114of values. For example, the pattern (foo bar) matches any two 114of values. For example, the pattern `(,foo ,bar) matches any
115element list, binding its elements to symbols named `foo' and 115two element list, binding its elements to symbols named `foo' and
116`bar' -- in much the same way that `cl-destructuring-bind' would. 116`bar' -- in much the same way that `cl-destructuring-bind' would.
117 117
118A significant difference from `cl-destructuring-bind' is that, if 118A 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
120succesful match is found or there are no more cases. 120succesful match is found or there are no more cases.
121 121
122Another difference is that pattern elements may be backquoted, 122Another difference is that pattern elements may be backquoted,
123meaning they must match exactly: The pattern (\\='foo \\='bar) 123meaning they must match exactly: The pattern \\='(foo bar)
124matches only against two element lists containing the symbols 124matches only against two element lists containing the symbols
125`foo' and `bar' in that order. (As a short-hand, atoms always 125`foo' and `bar' in that order. (As a short-hand, atoms always
126match themselves, such as numbers or strings, and need not be 126match themselves, such as numbers or strings, and need not be