Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f97aed1

Browse files
committed
merge 3.1
2 parents 3cbf14b + 4c02088 commit f97aed1

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
@@ -205,7 +205,7 @@ These functions are usually used in the module initialization function.
205205
.. c:function:: int PyModule_AddIntMacro(PyObject *module, macro)
206206
207207
Add an int constant to *module*. The name and the value are taken from
208-
*macro*. For example ``PyModule_AddConstant(module, AF_INET)`` adds the int
208+
*macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int
209209
constant *AF_INET* with the value of *AF_INET* to *module*.
210210
Return ``-1`` on error, ``0`` on success.
211211

0 commit comments

Comments
 (0)