]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Fix phrasing in paragraphs with leading "similar" (GH-121135) (#130364)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 20 Feb 2025 15:58:16 +0000 (16:58 +0100)
committerGitHub <noreply@github.com>
Thu, 20 Feb 2025 15:58:16 +0000 (15:58 +0000)
Co-authored-by: Rafael Fontenelle <rffontenelle@users.noreply.github.com>
Doc/c-api/dict.rst

index b4fdf47bc915bdab36f489d6d8459a6c4ec38681..ce73fa0cc60ebbeba747c2454f96d4dd647aa6b4 100644 (file)
@@ -156,7 +156,7 @@ Dictionary Objects
 
 .. c:function:: int PyDict_GetItemStringRef(PyObject *p, const char *key, PyObject **result)
 
-   Similar than :c:func:`PyDict_GetItemRef`, but *key* is specified as a
+   Similar to :c:func:`PyDict_GetItemRef`, but *key* is specified as a
    :c:expr:`const char*` UTF-8 encoded bytes string, rather than a
    :c:expr:`PyObject*`.
 
@@ -206,7 +206,7 @@ Dictionary Objects
      ``NULL``, and return ``0``.
    - On error, raise an exception and return ``-1``.
 
-   This is similar to :meth:`dict.pop`, but without the default value and
+   Similar to :meth:`dict.pop`, but without the default value and
    not raising :exc:`KeyError` if the key missing.
 
    .. versionadded:: 3.13