Kaydet (Commit) 4c020885 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

fix function name in example (closes #11966)

üst 73365dd8
...@@ -192,7 +192,7 @@ These functions are usually used in the module initialization function. ...@@ -192,7 +192,7 @@ These functions are usually used in the module initialization function.
.. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro) .. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro)
Add an int constant to *module*. The name and the value are taken from 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*. constant *AF_INET* with the value of *AF_INET* to *module*.
Return ``-1`` on error, ``0`` on success. Return ``-1`` on error, ``0`` on success.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment