codecs docs: fix grammar mistake (GH-29462)
https://github.com/python/cpython/commit/2d936a42ac2b45ddc160eb90178cc9b4107... commit: 2d936a42ac2b45ddc160eb90178cc9b4107639db branch: 3.10 author: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> committer: miss-islington <31488909+miss-islington@users.noreply.github.com> date: 2022-04-02T14:33:52-07:00 summary: codecs docs: fix grammar mistake (GH-29462) (cherry picked from commit ea56845744e815ed468dfbdd835110254c3be997) Co-authored-by: 180909 <wjh180909@gmail.com> files: M Doc/library/codecs.rst diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 1a1ce9237b010..9e2eb63479282 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -912,7 +912,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
participants (1)
-
miss-islington