summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2015-05-18 19:20:18 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2015-05-18 19:20:18 (GMT)
commit9ce71a6475b00b986a861e18ee18dbbf46286e5a (patch)
tree9c59a27234d60bb36026e6ef7466ec6387459d8f /Objects/stringlib
parent8085b80c187865e6feab652465d0f6742b9083a1 (diff)
parent7e29eea9266ab465ac0b7248bcca965bfa3fa737 (diff)
downloadcpython-9ce71a6475b00b986a861e18ee18dbbf46286e5a.zip
cpython-9ce71a6475b00b986a861e18ee18dbbf46286e5a.tar.gz
cpython-9ce71a6475b00b986a861e18ee18dbbf46286e5a.tar.bz2
Fixed typos in comments.
Diffstat (limited to 'Objects/stringlib')
-rw-r--r--Objects/stringlib/codecs.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Objects/stringlib/codecs.h b/Objects/stringlib/codecs.h
index cd5d944..0fc6b58 100644
--- a/Objects/stringlib/codecs.h
+++ b/Objects/stringlib/codecs.h
@@ -660,7 +660,7 @@ STRINGLIB(utf16_encode)(const STRINGLIB_CHAR *in,
if (ch < 0xd800)
*out++ = ch;
else if (ch < 0xe000)
- /* reject surrogate characters (U+DC800-U+DFFF) */
+ /* reject surrogate characters (U+D800-U+DFFF) */
goto fail;
#if STRINGLIB_MAX_CHAR >= 0x10000
else if (ch >= 0x10000) {
@@ -695,7 +695,7 @@ STRINGLIB(utf16_encode)(const STRINGLIB_CHAR *in,
if (ch < 0xd800)
*out++ = SWAB2((Py_UCS2)ch);
else if (ch < 0xe000)
- /* reject surrogate characters (U+DC800-U+DFFF) */
+ /* reject surrogate characters (U+D800-U+DFFF) */
goto fail;
#if STRINGLIB_MAX_CHAR >= 0x10000
else if (ch >= 0x10000) {
@@ -760,7 +760,7 @@ STRINGLIB(utf32_encode)(const STRINGLIB_CHAR *in,
ch = *in++;
#if STRINGLIB_SIZEOF_CHAR > 1
if (Py_UNICODE_IS_SURROGATE(ch)) {
- /* reject surrogate characters (U+DC800-U+DFFF) */
+ /* reject surrogate characters (U+D800-U+DFFF) */
goto fail;
}
#endif
@@ -788,7 +788,7 @@ STRINGLIB(utf32_encode)(const STRINGLIB_CHAR *in,
Py_UCS4 ch = *in++;
#if STRINGLIB_SIZEOF_CHAR > 1
if (Py_UNICODE_IS_SURROGATE(ch)) {
- /* reject surrogate characters (U+DC800-U+DFFF) */
+ /* reject surrogate characters (U+D800-U+DFFF) */
goto fail;
}
#endif