mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
Fixed the documentation of the structure PyMethodDef.
The fields ml_name and ml_doc are of type "const char *" rather of "char *".
This commit is contained in:
commit
bb8fd5b1eb
@ -1122,10 +1122,10 @@ If :c:member:`~PyTypeObject.tp_methods` is not *NULL*, it must refer to an array
|
||||
structure::
|
||||
|
||||
typedef struct PyMethodDef {
|
||||
char *ml_name; /* method name */
|
||||
const char *ml_name; /* method name */
|
||||
PyCFunction ml_meth; /* implementation function */
|
||||
int ml_flags; /* flags */
|
||||
char *ml_doc; /* docstring */
|
||||
const char *ml_doc; /* docstring */
|
||||
} PyMethodDef;
|
||||
|
||||
One entry should be defined for each method provided by the type; no entries are
|
||||
|
Loading…
Reference in New Issue
Block a user