]> granicus.if.org Git - python/commitdiff
merge 3.1
authorBenjamin Peterson <benjamin@python.org>
Sat, 30 Apr 2011 18:15:18 +0000 (13:15 -0500)
committerBenjamin Peterson <benjamin@python.org>
Sat, 30 Apr 2011 18:15:18 +0000 (13:15 -0500)
1  2 
Doc/c-api/module.rst

index 1a64947454bb040f12d715b4bb83a9283af3251c,12816c9fd8c7a3e4c3374858ac1665b509a6485f..ffd68e308489ae1d4bd1db09682c0cb844663a4f
@@@ -202,10 -189,10 +202,10 @@@ These functions are usually used in th
     null-terminated.  Return ``-1`` on error, ``0`` on success.
  
  
 -.. cfunction:: int PyModule_AddIntMacro(PyObject *module, macro)
 +.. c:function:: 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.