summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-08 17:27:53 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-11-08 17:27:53 +0200
commitfba5dc18009df4dad9f6e251ad9a3b8a8e1a2542 (patch)
tree258131ae32b8d09b52871a0dd2126960c3708eeb
parent73b56c8d57b6f5854a42197aec460ed9be984a5a (diff)
parent7cac2d8368c4ecaa3d5edd58d111c71eaa704eaa (diff)
downloadcpython-git-fba5dc18009df4dad9f6e251ad9a3b8a8e1a2542.tar.gz
Merge issue #16439: Fix markup in example for stdtypes.
Thanks to Yongzhi Pan.
-rw-r--r--Doc/library/stdtypes.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst
index 0366507c0c..cd07fa7095 100644
--- a/Doc/library/stdtypes.rst
+++ b/Doc/library/stdtypes.rst
@@ -1832,11 +1832,11 @@ expression support in the :mod:`re` module).
>>> import re
>>> def titlecase(s):
- return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
- lambda mo: mo.group(0)[0].upper() +
- mo.group(0)[1:].lower(),
- s)
-
+ ... return re.sub(r"[A-Za-z]+('[A-Za-z]+)?",
+ ... lambda mo: mo.group(0)[0].upper() +
+ ... mo.group(0)[1:].lower(),
+ ... s)
+ ...
>>> titlecase("they're bill's friends.")
"They're Bill's Friends."