summaryrefslogtreecommitdiff
path: root/Doc/extending
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-11-21 11:37:18 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-11-21 11:37:18 +0200
commit06a8dea46d593cd45391f49decf482fb3203f91b (patch)
tree68be54aede0be49cd3cc70a73987b10d791ce75a /Doc/extending
parentaa5a13f5ad319c60c2c0bcb79428729d36f2c592 (diff)
downloadcpython-git-06a8dea46d593cd45391f49decf482fb3203f91b.tar.gz
Fixed the documentation of the structure PyMethodDef.
The fields ml_name and ml_doc are of type "const char *" rather of "char *".
Diffstat (limited to 'Doc/extending')
-rw-r--r--Doc/extending/newtypes.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/extending/newtypes.rst b/Doc/extending/newtypes.rst
index 4a6e26cf2a..b8ce437787 100644
--- a/Doc/extending/newtypes.rst
+++ b/Doc/extending/newtypes.rst
@@ -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