gh-93738: Documentation C syntax (:c:type: to :c:expr:, misc. cases) (#97775)

* :c:type: to :c:expr:

* Update Doc/whatsnew/2.4.rst
This commit is contained in:
Adam Turner 2022-10-05 00:32:27 +01:00 committed by GitHub
parent 192d401ba5
commit 6b3d4db02e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 7 deletions

View file

@ -65,7 +65,7 @@ the :mod:`io` APIs instead.
Overrides the normal behavior of :func:`io.open_code` to pass its parameter
through the provided handler.
The handler is a function of type :c:type:`PyObject *(\*)(PyObject *path,
The handler is a function of type :c:expr:`PyObject *(\*)(PyObject *path,
void *userData)`, where *path* is guaranteed to be :c:type:`PyUnicodeObject`.
The *userData* pointer is passed into the hook function. Since hook