Skip to content

Commit b5fe80a

Browse files
committed
pythongh-122701: Fix wording of raw strings/bytes in lexical_analysis.rst
1 parent 5bd7291 commit b5fe80a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,8 @@ must be expressed with escapes.
503503
single: r"; raw string literal
504504

505505
Both string and bytes literals may optionally be prefixed with a letter ``'r'``
506-
or ``'R'``; such strings are called :dfn:`raw strings` and treat backslashes as
506+
or ``'R'``; such objects are called :dfn:`raw strings`
507+
and :dfn:`raw bytes` respectively and treat backslashes as
507508
literal characters. As a result, in string literals, ``'\U'`` and ``'\u'``
508509
escapes in raw strings are not treated specially. Given that Python 2.x's raw
509510
unicode literals behave differently than Python 3.x's the ``'ur'`` syntax

0 commit comments

Comments
 (0)