diff options
| author | John Wiegley | 2016-01-22 09:55:52 -0800 |
|---|---|---|
| committer | John Wiegley | 2016-01-22 09:55:52 -0800 |
| commit | f7dc6d8b5bb318e02a4016d93f8b34de0716f4dc (patch) | |
| tree | 9a250aa54f7487c26d24721971a7f897288c9355 | |
| parent | 669d30b2173dfbfe9658320baf79e1b504fb89b1 (diff) | |
| download | emacs-f7dc6d8b5bb318e02a4016d93f8b34de0716f4dc.tar.gz emacs-f7dc6d8b5bb318e02a4016d93f8b34de0716f4dc.zip | |
Further corrections to the pcase docstring
| -rw-r--r-- | lisp/emacs-lisp/pcase.el | 6 |
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 @@ | |||
| 111 | CASES is a list of elements of the form (PATTERN CODE...). | 111 | CASES is a list of elements of the form (PATTERN CODE...). |
| 112 | 112 | ||
| 113 | A structural PATTERN describes a template that identifies a class | 113 | A structural PATTERN describes a template that identifies a class |
| 114 | of values. For example, the pattern (foo bar) matches any two | 114 | of values. For example, the pattern `(,foo ,bar) matches any |
| 115 | element list, binding its elements to symbols named `foo' and | 115 | two 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 | ||
| 118 | A significant difference from `cl-destructuring-bind' is that, if | 118 | 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 | |||
| 120 | succesful match is found or there are no more cases. | 120 | succesful match is found or there are no more cases. |
| 121 | 121 | ||
| 122 | Another difference is that pattern elements may be backquoted, | 122 | Another difference is that pattern elements may be backquoted, |
| 123 | meaning they must match exactly: The pattern (\\='foo \\='bar) | 123 | meaning they must match exactly: The pattern \\='(foo bar) |
| 124 | matches only against two element lists containing the symbols | 124 | matches 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 |
| 126 | match themselves, such as numbers or strings, and need not be | 126 | match themselves, such as numbers or strings, and need not be |