]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix minor grammatical mistakes in reversed(dict) doc (GH-10997)
authorAndre Delfino <adelfino@gmail.com>
Mon, 24 Dec 2018 07:05:23 +0000 (04:05 -0300)
committerRaymond Hettinger <rhettinger@users.noreply.github.com>
Mon, 24 Dec 2018 07:05:23 +0000 (23:05 -0800)
Doc/library/stdtypes.rst

index d23e7e9b87ff81da9dd7b39d10a1e74827739dd7..887497852216e3c471169fb0b77f58a1423880c0 100644 (file)
@@ -4283,7 +4283,7 @@ pairs within braces, for example: ``{'jack': 4098, 'sjoerd': 4127}`` or ``{4098:
 
    .. describe:: reversed(d)
 
-      Return a reversed iterator over the keys of the dictionary. This is a
+      Return a reverse iterator over the keys of the dictionary. This is a
       shortcut for ``reversed(d.keys())``.
 
    .. method:: setdefault(key[, default])
@@ -4394,7 +4394,7 @@ support membership tests:
 
 .. describe:: reversed(dictview)
 
-   Return an reversed iterator over the keys, values or items of the dictionnary.
+   Return a reverse iterator over the keys, values or items of the dictionary.
    The view will be iterated in reverse order of the insertion.
 
    .. versionchanged:: 3.8