]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (GH-140899) (#140901)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 2 Nov 2025 08:38:56 +0000 (09:38 +0100)
committerGitHub <noreply@github.com>
Sun, 2 Nov 2025 08:38:56 +0000 (08:38 +0000)
Docs: fix some grammatical errors in `Doc/c-api/dict.rst` (GH-140899)
(cherry picked from commit d12cbf2865d2845d238f697ddace83face814972)

Co-authored-by: RayXu <140802139+F18-Maverick@users.noreply.github.com>
Doc/c-api/dict.rst

index 0fbe26b56c0a7c6a19824d15efb41bda18da0f14..0abbd662dad394fbc6aa1b75828e082c201258a3 100644 (file)
@@ -50,7 +50,7 @@ Dictionary Objects
 
 .. c:function:: int PyDict_Contains(PyObject *p, PyObject *key)
 
-   Determine if dictionary *p* contains *key*.  If an item in *p* is matches
+   Determine if dictionary *p* contains *key*.  If an item in *p* matches
    *key*, return ``1``, otherwise return ``0``.  On error, return ``-1``.
    This is equivalent to the Python expression ``key in p``.
 
@@ -198,7 +198,7 @@ Dictionary Objects
 .. c:function:: int PyDict_Pop(PyObject *p, PyObject *key, PyObject **result)
 
    Remove *key* from dictionary *p* and optionally return the removed value.
-   Do not raise :exc:`KeyError` if the key missing.
+   Do not raise :exc:`KeyError` if the key is missing.
 
    - If the key is present, set *\*result* to a new reference to the removed
      value if *result* is not ``NULL``, and return ``1``.
@@ -207,7 +207,7 @@ Dictionary Objects
    - On error, raise an exception and return ``-1``.
 
    Similar to :meth:`dict.pop`, but without the default value and
-   not raising :exc:`KeyError` if the key missing.
+   not raising :exc:`KeyError` if the key is missing.
 
    .. versionadded:: 3.13