summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-04-30 18:14:56 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-04-30 18:14:56 (GMT)
commit4c020885d9614e6c974835ca898e2f56a88ba6c3 (patch)
treef6a09c4b2354279088c7648ced7998bc1d83f765 /Doc
parent73365dd887e9e4feef6d3fdf3d4b56d2ac1a8e4b (diff)
downloadcpython-4c020885d9614e6c974835ca898e2f56a88ba6c3.zip
cpython-4c020885d9614e6c974835ca898e2f56a88ba6c3.tar.gz
cpython-4c020885d9614e6c974835ca898e2f56a88ba6c3.tar.bz2
fix function name in example (closes #11966)
Diffstat (limited to 'Doc')
-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 2c7faf0..12816c9 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -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.