Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5c90436

Browse files
committed
Issue #16439: Fix markup in example for stdtypes.
Thanks to Yongzhi Pan.
1 parent 0e9a065 commit 5c90436

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1390,11 +1390,11 @@ functions based on regular expressions.
13901390

13911391
>>> import re
13921392
>>> def titlecase(s):
1393-
return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
1394-
lambda mo: mo.group(0)[0].upper() +
1395-
mo.group(0)[1:].lower(),
1396-
s)
1397-
1393+
... return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
1394+
... lambda mo: mo.group(0)[0].upper() +
1395+
... mo.group(0)[1:].lower(),
1396+
... s)
1397+
...
13981398
>>> titlecase("they're bill's friends.")
13991399
"They're Bill's Friends."
14001400

0 commit comments

Comments
 (0)