]> 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 abac599f2dacb0d2880235379e38d4f534485b6d..649c7235dade51b6f20e26f4cd92ad40da7980cb 100644 (file)
@@ -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.