summaryrefslogtreecommitdiffstats
path: root/Doc/library/codecs.rst
diff options
context:
space:
mode:
author180909 <wjh180909@gmail.com>2022-04-02 21:12:32 (GMT)
committerGitHub <noreply@github.com>2022-04-02 21:12:32 (GMT)
commitea56845744e815ed468dfbdd835110254c3be997 (patch)
tree3b95bebc5376054722cca4e0348210999355779e /Doc/library/codecs.rst
parent3df0e63aabef905b72fad78256f24b9270c63172 (diff)
downloadcpython-ea56845744e815ed468dfbdd835110254c3be997.zip
cpython-ea56845744e815ed468dfbdd835110254c3be997.tar.gz
cpython-ea56845744e815ed468dfbdd835110254c3be997.tar.bz2
codecs docs: fix grammar mistake (GH-29462)
Diffstat (limited to 'Doc/library/codecs.rst')
-rw-r--r--Doc/library/codecs.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst
index 7671097..e6f5954 100644
--- a/Doc/library/codecs.rst
+++ b/Doc/library/codecs.rst
@@ -915,7 +915,7 @@ there's the so called BOM ("Byte Order Mark"). This is the Unicode character
``U+FEFF``. This character can be prepended to every ``UTF-16`` or ``UTF-32``
byte sequence. The byte swapped version of this character (``0xFFFE``) is an
illegal character that may not appear in a Unicode text. So when the
-first character in an ``UTF-16`` or ``UTF-32`` byte sequence
+first character in a ``UTF-16`` or ``UTF-32`` byte sequence
appears to be a ``U+FFFE`` the bytes have to be swapped on decoding.
Unfortunately the character ``U+FEFF`` had a second purpose as
a ``ZERO WIDTH NO-BREAK SPACE``: a character that has no width and doesn't allow