]> granicus.if.org Git - python/commitdiff
fix function name in example (closes #11966)
authorBenjamin Peterson <benjamin@python.org>
Sat, 30 Apr 2011 18:14:56 +0000 (13:14 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 30 Apr 2011 18:14:56 +0000 (13:14 -0500)
Doc/c-api/module.rst

index 2c7faf0d2e3b15361b8adf344f774d581b800658..12816c9fd8c7a3e4c3374858ac1665b509a6485f 100644 (file)
@@ -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.