Skip to content

Commit 6722568

Browse files
authored
Apply suggestions from code review
1 parent 7843b3a commit 6722568

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Doc/library/stdtypes.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,13 +1817,15 @@ expression support in the :mod:`re` module).
18171817
See :ref:`error-handlers` for details.
18181818

18191819
For performance reasons, the value of *errors* is not checked for validity
1820-
unless an encoding error actually occurs, :ref:`devmode` is enabled or a :ref:`debug build <debug-build>` is used.
1820+
unless an encoding error actually occurs,
1821+
:ref:`devmode` is enabled
1822+
or a :ref:`debug build <debug-build>` is used.
18211823
For example::
18221824

1823-
>>> encoded_str_to_byte = 'Python'.encode()
1824-
>>> type(encoded_str_to_byte)
1825+
>>> encoded_str_to_bytes = 'Python'.encode()
1826+
>>> type(encoded_str_to_bytes)
18251827
<class 'bytes'>
1826-
>>> encoded_str_to_byte
1828+
>>> encoded_str_to_bytes
18271829
b'Python'
18281830

18291831

0 commit comments

Comments
 (0)