From: Rafael Fontenelle Date: Tue, 2 Jul 2024 00:36:27 +0000 (-0300) Subject: Fix phrasing in paragraphs with leading "similar" (#121135) X-Git-Tag: v3.14.0a1~1261 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4f1e1dff8928e626924ee1ff70a77af1a14f0f2a;p=thirdparty%2FPython%2Fcpython.git Fix phrasing in paragraphs with leading "similar" (#121135) --- diff --git a/Doc/c-api/dict.rst b/Doc/c-api/dict.rst index b4fdf47bc915..ce73fa0cc60e 100644 --- a/Doc/c-api/dict.rst +++ b/Doc/c-api/dict.rst @@ -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