summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2017-01-14 08:23:08 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2017-01-14 08:23:08 (GMT)
commit536d70ed331c3192578b73b2b243bc1dbbd8ec2a (patch)
treea2a1ac1d395d2c4cb632c262df98968cc7ddb23f /Modules
parentb71c0956d0904cfdc271cd10d40385c730cf8bcb (diff)
downloadcpython-536d70ed331c3192578b73b2b243bc1dbbd8ec2a.zip
cpython-536d70ed331c3192578b73b2b243bc1dbbd8ec2a.tar.gz
cpython-536d70ed331c3192578b73b2b243bc1dbbd8ec2a.tar.bz2
Fix grammar, typos and markup in documentation and code comments
* Indent versionchanged at method level, not class level * Mark up ``--help`` to avoid generating an en dash * Use forward slash in Unix command line with a dollar sign ($) prompt
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_collectionsmodule.c2
-rw-r--r--Modules/_io/textio.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_collectionsmodule.c b/Modules/_collectionsmodule.c
index 10fbcfe..ac81680 100644
--- a/Modules/_collectionsmodule.c
+++ b/Modules/_collectionsmodule.c
@@ -2169,7 +2169,7 @@ static PyTypeObject defdict_type = {
PyDoc_STRVAR(_count_elements_doc,
"_count_elements(mapping, iterable) -> None\n\
\n\
-Count elements in the iterable, updating the mappping");
+Count elements in the iterable, updating the mapping");
static PyObject *
_count_elements(PyObject *self, PyObject *args)
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index 46c99b5..89b0798 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -1012,7 +1012,7 @@ _io_TextIOWrapper___init___impl(textio *self, PyObject *buffer,
errors);
if (self->encoder == NULL)
goto error;
- /* Get the normalized named of the codec */
+ /* Get the normalized name of the codec */
res = _PyObject_GetAttrId(codec_info, &PyId_name);
if (res == NULL) {
if (PyErr_ExceptionMatches(PyExc_AttributeError))