[Python-checkins] cpython (2.7): Fix example in backreference description. Found by Alexander Heger on docs at .

georg.brandl python-checkins at python.org
Sun Oct 6 12:57:52 CEST 2013


http://hg.python.org/cpython/rev/2b0401e50fc3
changeset:   86072:2b0401e50fc3
branch:      2.7
parent:      86067:c5d1b25d43a5
user:        Georg Brandl <georg at python.org>
date:        Sun Oct 06 12:58:20 2013 +0200
summary:
  Fix example in backreference description.  Found by Alexander Heger on docs at .

files:
  Doc/library/re.rst |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Doc/library/re.rst b/Doc/library/re.rst
--- a/Doc/library/re.rst
+++ b/Doc/library/re.rst
@@ -322,7 +322,7 @@
 ``\number``
    Matches the contents of the group of the same number.  Groups are numbered
    starting from 1.  For example, ``(.+) \1`` matches ``'the the'`` or ``'55 55'``,
-   but not ``'the end'`` (note the space after the group).  This special sequence
+   but not ``'thethe'`` (note the space after the group).  This special sequence
    can only be used to match one of the first 99 groups.  If the first digit of
    *number* is 0, or *number* is 3 octal digits long, it will not be interpreted as
    a group match, but as the character with octal value *number*. Inside the

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list