summaryrefslogtreecommitdiffstats
path: root/Doc/c-api/module.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-04-30 18:16:14 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-04-30 18:16:14 (GMT)
commit1a5097244aa1dc40bd278b26285e8d9d01bc0876 (patch)
tree2d5368d6e96263bac23e3c39741e2198364cea4f /Doc/c-api/module.rst
parent00db58227241d42fe35effad7e38f627d971fdfd (diff)
parentf97aed1a2506539ca612bad9435b1f92b811857d (diff)
downloadcpython-1a5097244aa1dc40bd278b26285e8d9d01bc0876.zip
cpython-1a5097244aa1dc40bd278b26285e8d9d01bc0876.tar.gz
cpython-1a5097244aa1dc40bd278b26285e8d9d01bc0876.tar.bz2
merge 3.2
Diffstat (limited to 'Doc/c-api/module.rst')
-rw-r--r--Doc/c-api/module.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
index b914068..b97c08d 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -221,7 +221,7 @@ These functions are usually used in the module initialization function.
.. c:function:: 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.