]> granicus.if.org Git - python/commitdiff
#7685: typo
authorEzio Melotti <ezio.melotti@gmail.com>
Wed, 13 Jan 2010 00:25:03 +0000 (00:25 +0000)
committerEzio Melotti <ezio.melotti@gmail.com>
Wed, 13 Jan 2010 00:25:03 +0000 (00:25 +0000)
Doc/library/re.rst

index c099fcd59d667936b2e97a13809db53a3b900eb6..9c3a52dea13dc8645c7d040e5d45a96a67beacc7 100644 (file)
@@ -829,16 +829,16 @@ support the following methods and attributes:
 
    A moderately complicated example:
 
-      >>> m = re.match(r"(?P<first_name>\w+) (?P<last_name>\w+)", "Malcom Reynolds")
+      >>> m = re.match(r"(?P<first_name>\w+) (?P<last_name>\w+)", "Malcolm Reynolds")
       >>> m.group('first_name')
-      'Malcom'
+      'Malcolm'
       >>> m.group('last_name')
       'Reynolds'
 
    Named groups can also be referred to by their index:
 
       >>> m.group(1)
-      'Malcom'
+      'Malcolm'
       >>> m.group(2)
       'Reynolds'
 
@@ -881,9 +881,9 @@ support the following methods and attributes:
    the subgroup name.  The *default* argument is used for groups that did not
    participate in the match; it defaults to ``None``.  For example:
 
-      >>> m = re.match(r"(?P<first_name>\w+) (?P<last_name>\w+)", "Malcom Reynolds")
+      >>> m = re.match(r"(?P<first_name>\w+) (?P<last_name>\w+)", "Malcolm Reynolds")
       >>> m.groupdict()
-      {'first_name': 'Malcom', 'last_name': 'Reynolds'}
+      {'first_name': 'Malcolm', 'last_name': 'Reynolds'}
 
 
 .. method:: MatchObject.start([group])