summaryrefslogtreecommitdiff
path: root/Objects/bytesobject.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-08-30 10:47:49 -0700
committerRaymond Hettinger <python@rcn.com>2016-08-30 10:47:49 -0700
commit15f44ab043b37c064d6891c7864205fed9fb0dd1 (patch)
tree726736587da36fbfebc1dfb12c4d9c14e6bf9a61 /Objects/bytesobject.c
parent613debcf0a0409b49ad4e1ee63dfc73119029755 (diff)
downloadcpython-git-15f44ab043b37c064d6891c7864205fed9fb0dd1.tar.gz
Issue #27895: Spelling fixes (Contributed by Ville Skyttä).
Diffstat (limited to 'Objects/bytesobject.c')
-rw-r--r--Objects/bytesobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c
index 4fdaa526a6..b0d9b39825 100644
--- a/Objects/bytesobject.c
+++ b/Objects/bytesobject.c
@@ -247,7 +247,7 @@ PyBytes_FromFormatV(const char *format, va_list vargs)
++f;
}
- /* substract bytes preallocated for the format string
+ /* subtract bytes preallocated for the format string
(ex: 2 for "%s") */
writer.min_size -= (f - p + 1);
@@ -1093,7 +1093,7 @@ _PyBytes_DecodeEscapeRecode(const char **s, const char *end,
assert(PyBytes_Check(w));
/* Append bytes to output buffer. */
- writer->min_size--; /* substract 1 preallocated byte */
+ writer->min_size--; /* subtract 1 preallocated byte */
p = _PyBytesWriter_WriteBytes(writer, p,
PyBytes_AS_STRING(w),
PyBytes_GET_SIZE(w));