[Python-checkins] cpython (3.1): fix function name in example (closes #11966)

benjamin.peterson python-checkins at python.org
Sat Apr 30 20:14:11 CEST 2011


http://hg.python.org/cpython/rev/b3e7ffe6d727
changeset: 69713:b3e7ffe6d727
branch: 3.1
parent: 69699:cd68b3031f00
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
@@ -192,7 +192,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

AltStyle によって変換されたページ (->オリジナル) /