diff options
author | Raymond Hettinger <python@rcn.com> | 2016-08-30 17:47:49 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-08-30 17:47:49 (GMT) |
commit | 15f44ab043b37c064d6891c7864205fed9fb0dd1 (patch) | |
tree | 726736587da36fbfebc1dfb12c4d9c14e6bf9a61 /Objects/stringlib | |
parent | 613debcf0a0409b49ad4e1ee63dfc73119029755 (diff) | |
download | cpython-15f44ab043b37c064d6891c7864205fed9fb0dd1.zip cpython-15f44ab043b37c064d6891c7864205fed9fb0dd1.tar.gz cpython-15f44ab043b37c064d6891c7864205fed9fb0dd1.tar.bz2 |
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
Diffstat (limited to 'Objects/stringlib')
-rw-r--r-- | Objects/stringlib/codecs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/stringlib/codecs.h b/Objects/stringlib/codecs.h index 2846d7e..749e765 100644 --- a/Objects/stringlib/codecs.h +++ b/Objects/stringlib/codecs.h @@ -347,7 +347,7 @@ STRINGLIB(utf8_encoder)(PyObject *unicode, break; case _Py_ERROR_BACKSLASHREPLACE: - /* substract preallocated bytes */ + /* subtract preallocated bytes */ writer.min_size -= max_char_size * (endpos - startpos); p = backslashreplace(&writer, p, unicode, startpos, endpos); @@ -357,7 +357,7 @@ STRINGLIB(utf8_encoder)(PyObject *unicode, break; case _Py_ERROR_XMLCHARREFREPLACE: - /* substract preallocated bytes */ + /* subtract preallocated bytes */ writer.min_size -= max_char_size * (endpos - startpos); p = xmlcharrefreplace(&writer, p, unicode, startpos, endpos); @@ -387,7 +387,7 @@ STRINGLIB(utf8_encoder)(PyObject *unicode, if (!rep) goto error; - /* substract preallocated bytes */ + /* subtract preallocated bytes */ writer.min_size -= max_char_size; if (PyBytes_Check(rep)) { |