Skip to content

Commit 4c02088

Browse files
committed
fix function name in example (closes python#11966)
1 parent 73365dd commit 4c02088

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/c-api/module.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ These functions are usually used in the module initialization function.
192192
.. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro)
193193

194194
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
195+
*macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int
196196
constant *AF_INET* with the value of *AF_INET* to *module*.
197197
Return ``-1`` on error, ``0`` on success.
198198

0 commit comments

Comments
 (0)