From 2a7a3ee39ab253633dcc97d71adbd64f11fa990b Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Sat, 30 Apr 2011 13:14:56 -0500 Subject: [PATCH] fix function name in example (closes #11966) --- Doc/c-api/module.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst index abac599f2d..649c7235da 100644 --- a/Doc/c-api/module.rst +++ b/Doc/c-api/module.rst @@ -107,7 +107,7 @@ There are only a few functions special to module objects. .. 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. -- 2.50.1