diff options
author | xpvpc <32843902+xpvpc@users.noreply.github.com> | 2018-02-16 16:46:39 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2018-02-16 16:46:39 (GMT) |
commit | b65cb163d6e125606070c54dc757f421fe419b59 (patch) | |
tree | 25f4f68a2ca16c7807d7eb1bc9c32bef0de32276 | |
parent | 997b8c140e768c849fa99d172245a7688af20a89 (diff) | |
download | cpython-b65cb163d6e125606070c54dc757f421fe419b59.zip cpython-b65cb163d6e125606070c54dc757f421fe419b59.tar.gz cpython-b65cb163d6e125606070c54dc757f421fe419b59.tar.bz2 |
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().
-rw-r--r-- | Doc/whatsnew/3.7.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index c3761c5..89ca5d7 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'). |