emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-25 f7dc6d8: Further corrections to the pcase docstri


From: John Wiegley
Subject: [Emacs-diffs] emacs-25 f7dc6d8: Further corrections to the pcase docstring
Date: Fri, 22 Jan 2016 17:56:07 +0000

branch: emacs-25
commit f7dc6d8b5bb318e02a4016d93f8b34de0716f4dc
Author: John Wiegley <address@hidden>
Commit: John Wiegley <address@hidden>

    Further corrections to the pcase docstring
---
 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 a2e0524..549ee96 100644
--- a/lisp/emacs-lisp/pcase.el
+++ b/lisp/emacs-lisp/pcase.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]