]> code.delx.au - gnu-emacs/blobdiff - lisp/subr.el
Fix doc string quoting
[gnu-emacs] / lisp / subr.el
index 43660d74377c8f80d1b71dbfc56445c6ce9c7497..81570d484b99e4c786523a18e6b08b92d73dd74a 100644 (file)
@@ -3760,9 +3760,9 @@ the match data are the result of matching REGEXP against a substring
 of STRING, the same substring that is the actual text of the match which
 is passed to REP as its argument.
 
-To replace only the first match (if any), make REGEXP match up to \\'
+To replace only the first match (if any), make REGEXP match up to \\\\='
 and replace a sub-expression, e.g.
-  (replace-regexp-in-string \"\\\\(foo\\\\).*\\\\'\" \"bar\" \" foo foo\" nil nil 1)
+  (replace-regexp-in-string \"\\\\(foo\\\\).*\\\\\\='\" \"bar\" \" foo foo\" nil nil 1)
     => \" bar foo\""
 
   ;; To avoid excessive consing from multiple matches in long strings,