fix function name in example (closes #11966)

This commit is contained in:
Benjamin Peterson 2011-04-30 13:14:56 -05:00
parent 73365dd887
commit 4c020885d9
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ These functions are usually used in the module initialization function.
.. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro)
Add an int constant to *module*. The name and the value are taken from
*macro*. For example ``PyModule_AddConstant(module, AF_INET)`` adds the int
*macro*. For example ``PyModule_AddIntMacro(module, AF_INET)`` adds the int
constant *AF_INET* with the value of *AF_INET* to *module*.
Return ``-1`` on error, ``0`` on success.