bpo-29918: Add missed "const" modifiers in C API documentation. (#846)
diff --git a/Doc/c-api/module.rst b/Doc/c-api/module.rst
index 7724350..bae0372 100644
--- a/Doc/c-api/module.rst
+++ b/Doc/c-api/module.rst
@@ -80,7 +80,7 @@
.. versionadded:: 3.3
-.. c:function:: char* PyModule_GetName(PyObject *module)
+.. c:function:: const char* PyModule_GetName(PyObject *module)
Similar to :c:func:`PyModule_GetNameObject` but return the name encoded to
``'utf-8'``.
@@ -112,7 +112,7 @@
.. versionadded:: 3.2
-.. c:function:: char* PyModule_GetFilename(PyObject *module)
+.. c:function:: const char* PyModule_GetFilename(PyObject *module)
Similar to :c:func:`PyModule_GetFilenameObject` but return the filename
encoded to 'utf-8'.
@@ -146,11 +146,11 @@
Always initialize this member to :const:`PyModuleDef_HEAD_INIT`.
- .. c:member:: char* m_name
+ .. c:member:: const char *m_name
Name for the new module.
- .. c:member:: char* m_doc
+ .. c:member:: const char *m_doc
Docstring for the module; usually a docstring variable created with
:c:func:`PyDoc_STRVAR` is used.