bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)

diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst
index f28d63b..f84353c 100644
--- a/Doc/library/functions.rst
+++ b/Doc/library/functions.rst
@@ -1334,7 +1334,7 @@
       supported.
 
 
-.. function:: print(*objects, sep=' ', end='\n', file=sys.stdout, flush=False)
+.. function:: print(*objects, sep=' ', end='\\n', file=sys.stdout, flush=False)
 
    Print *objects* to the text stream *file*, separated by *sep* and followed
    by *end*.  *sep*, *end*, *file* and *flush*, if present, must be given as keyword