We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73365dd commit 4c02088Copy full SHA for 4c02088
1 file changed
Doc/c-api/module.rst
@@ -192,7 +192,7 @@ These functions are usually used in the module initialization function.
192
.. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro)
193
194
Add an int constant to *module*. The name and the value are taken from
195
- *macro*. For example ``PyModule_AddConstant(module, AF_INET)`` adds the int
+ *macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int
196
constant *AF_INET* with the value of *AF_INET* to *module*.
197
Return ``-1`` on error, ``0`` on success.
198
0 commit comments