From 07605c452365d11807a8fed03778a96da82a62e9 Mon Sep 17 00:00:00 2001 From: xpvpc <32843902+xpvpc@users.noreply.github.com> Date: Fri, 16 Feb 2018 17:46:39 +0100 Subject: [PATCH] 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(). (cherry picked from commit b65cb163d6e125606070c54dc757f421fe419b59) Co-authored-by: xpvpc <32843902+xpvpc@users.noreply.github.com> --- Doc/whatsnew/3.7.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/whatsnew/3.7.rst b/Doc/whatsnew/3.7.rst index aaf4dcfa3050af6..583b7ee014217e6 100644 --- a/Doc/whatsnew/3.7.rst +++ b/Doc/whatsnew/3.7.rst @@ -1138,7 +1138,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').