From: Benjamin Peterson Date: Sat, 30 Apr 2011 18:14:56 +0000 (-0500) Subject: fix function name in example (closes #11966) X-Git-Tag: v3.2.1b1~45^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c020885d9614e6c974835ca898e2f56a88ba6c3;p=thirdparty%2FPython%2Fcpython.git fix function name in example (closes #11966) --- diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index 2c7faf0d2e3b..12816c9fd8c7 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.