[Python-checkins] cpython (2.7): fix function name in example (closes #11966)
benjamin.peterson
python-checkins at python.org
Sat Apr 30 20:14:14 CEST 2011
http://hg.python.org/cpython/rev/fb709d9fe92a
changeset: 69715:fb709d9fe92a
branch: 2.7
parent: 69704:1a45c92f9716
user: Benjamin Peterson <benjamin at python.org>
date: Sat Apr 30 13:14:56 2011 -0500
summary:
fix function name in example (closes #11966)
files:
Doc/c-api/module.rst | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -107,7 +107,7 @@
.. 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.
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list