]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix typo in regexp-opt example code
authorMattias Engdegård <mattiase@acm.org>
Sun, 31 Mar 2019 13:53:52 +0000 (15:53 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 31 Mar 2019 13:53:52 +0000 (15:53 +0200)
* doc/lispref/searching.texi (Regexp Functions):
Fix typo in example code (Bug#34596).

doc/lispref/searching.texi

index 0f312915f9e50050ce90fbf7daf59d8004bba65f..e3f31fdf8361bc9330e4c09040eb166dc6b0b180 100644 (file)
@@ -1007,9 +1007,9 @@ version:
          ((eq paren 'symbols) '("\\_<\\(" . "\\)\\_>"))
          ((null paren)          '("\\(?:" . "\\)"))
          (t                       '("\\(" . "\\)")))))
-   (concat (car paren)
+   (concat (car parens)
            (mapconcat 'regexp-quote strings "\\|")
-           (cdr paren))))
+           (cdr parens))))
 @end example
 @end defun