[Python-checkins] Correct the code example in Python 3.7's What's New (GH-5696)
Mariatta
webhook-mailer at python.org
Fri Feb 16 11:46:42 EST 2018
https://github.com/python/cpython/commit/b65cb163d6e125606070c54dc757f421fe419b59
commit: b65cb163d6e125606070c54dc757f421fe419b59
branch: master
author: xpvpc <32843902+xpvpc at users.noreply.github.com>
committer: Mariatta <Mariatta at users.noreply.github.com>
date: 2018-02-16T08:46:39-08:00
summary:
Correct the code example in Python 3.7's What's New (GH-5696)
There was an extra dash in the example for re.sub().
files:
M Doc/whatsnew/3.7.rst
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst
index c3761c565322..89ca5d75c85d 100644
--- a/Doc/whatsnew/3.7.rst
+++ b/Doc/whatsnew/3.7.rst
@@ -1146,7 +1146,7 @@ Changes in the Python API
:func:`re.sub()` now replaces empty matches adjacent to a previous
non-empty match. For example ``re.sub('x*', '-', 'abxd')`` returns now
- ``'-a-b--d-'`` instead of ``'-a-b--d-'`` (the first minus between 'b' and
+ ``'-a-b--d-'`` instead of ``'-a-b-d-'`` (the first minus between 'b' and
'd' replaces 'x', and the second minus replaces an empty string between
'x' and 'd').
More information about the Python-checkins
mailing list