diff options
| author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-30 10:01:03 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-03-30 10:01:03 +0300 |
| commit | 84b8e92e463bd6a5174bd3e5a6543580f6319c57 (patch) | |
| tree | d8aeb7d0360e2e538ccafb0ecd26ea52a58d7aff /Doc/extending/extending.rst | |
| parent | 576def096ec7b64814e038f03290031f172886c3 (diff) | |
| download | cpython-git-84b8e92e463bd6a5174bd3e5a6543580f6319c57.tar.gz | |
bpo-29918: Add missed "const" modifiers in C API documentation. (#846)
Diffstat (limited to 'Doc/extending/extending.rst')
| -rw-r--r-- | Doc/extending/extending.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst index 4ac820a432..2dc20fed13 100644 --- a/Doc/extending/extending.rst +++ b/Doc/extending/extending.rst @@ -727,9 +727,9 @@ Philbrick (philbrick@hks.com):: keywdarg_parrot(PyObject *self, PyObject *args, PyObject *keywds) { int voltage; - char *state = "a stiff"; - char *action = "voom"; - char *type = "Norwegian Blue"; + const char *state = "a stiff"; + const char *action = "voom"; + const char *type = "Norwegian Blue"; static char *kwlist[] = {"voltage", "state", "action", "type", NULL}; |
