summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSandro Tosi <sandro.tosi@gmail.com>2011-08-19 20:54:50 (GMT)
committerSandro Tosi <sandro.tosi@gmail.com>2011-08-19 20:54:50 (GMT)
commite1043fc23003426334e2e4f71ca92c8e92c81b98 (patch)
tree961ff5aa04de80913d38e70992727a982d248e9a /Doc/library
parent2f394f6666f75787cb5f0e5ca65df971b2ac0e8e (diff)
downloadcpython-e1043fc23003426334e2e4f71ca92c8e92c81b98.zip
cpython-e1043fc23003426334e2e4f71ca92c8e92c81b98.tar.gz
cpython-e1043fc23003426334e2e4f71ca92c8e92c81b98.tar.bz2
fix description of \r; thanks to Thomas Waldmann from docs@
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/re.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/re.rst b/Doc/library/re.rst
index 3046755..540a209 100644
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -635,7 +635,7 @@ form.
of *pattern* in *string* by the replacement *repl*. If the pattern isn't found,
*string* is returned unchanged. *repl* can be a string or a function; if it is
a string, any backslash escapes in it are processed. That is, ``\n`` is
- converted to a single newline character, ``\r`` is converted to a linefeed, and
+ converted to a single newline character, ``\r`` is converted to a carriage return, and
so forth. Unknown escapes such as ``\j`` are left alone. Backreferences, such
as ``\6``, are replaced with the substring matched by group 6 in the pattern.
For example: