diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-04-02 21:34:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-02 21:34:18 (GMT) |
commit | bf0f04f87139bceac1a5f84326d1a3ed3a5c4061 (patch) | |
tree | bb0b043882ffd09b3768b9eeac42d2fa5b38ff0e | |
parent | dc9322a91d48c80afe8329bb509673a2f74fb925 (diff) | |
download | cpython-bf0f04f87139bceac1a5f84326d1a3ed3a5c4061.zip cpython-bf0f04f87139bceac1a5f84326d1a3ed3a5c4061.tar.gz cpython-bf0f04f87139bceac1a5f84326d1a3ed3a5c4061.tar.bz2 |
codecs docs: fix grammar mistake (GH-29462)
(cherry picked from commit ea56845744e815ed468dfbdd835110254c3be997)
Co-authored-by: 180909 <wjh180909@gmail.com>
-rw-r--r-- | Doc/library/codecs.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 3386208..1a71e57 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -909,7 +909,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 |