diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-03-30 07:01:03 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-30 07:01:03 (GMT) |
commit | 84b8e92e463bd6a5174bd3e5a6543580f6319c57 (patch) | |
tree | d8aeb7d0360e2e538ccafb0ecd26ea52a58d7aff /Doc/c-api/unicode.rst | |
parent | 576def096ec7b64814e038f03290031f172886c3 (diff) | |
download | cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.zip cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.tar.gz cpython-84b8e92e463bd6a5174bd3e5a6543580f6319c57.tar.bz2 |
bpo-29918: Add missed "const" modifiers in C API documentation. (#846)
Diffstat (limited to 'Doc/c-api/unicode.rst')
-rw-r--r-- | Doc/c-api/unicode.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index c37734c..c743e57 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -490,10 +490,10 @@ APIs: | :attr:`%x` | int | Exactly equivalent to | | | | ``printf("%x")``. | +-------------------+---------------------+--------------------------------+ - | :attr:`%s` | char\* | A null-terminated C character | + | :attr:`%s` | const char\* | A null-terminated C character | | | | array. | +-------------------+---------------------+--------------------------------+ - | :attr:`%p` | void\* | The hex representation of a C | + | :attr:`%p` | const void\* | The hex representation of a C | | | | pointer. Mostly equivalent to | | | | ``printf("%p")`` except that | | | | it is guaranteed to start with | @@ -506,8 +506,8 @@ APIs: +-------------------+---------------------+--------------------------------+ | :attr:`%U` | PyObject\* | A unicode object. | +-------------------+---------------------+--------------------------------+ - | :attr:`%V` | PyObject\*, char \* | A unicode object (which may be | - | | | *NULL*) and a null-terminated | + | :attr:`%V` | PyObject\*, | A unicode object (which may be | + | | const char\* | *NULL*) and a null-terminated | | | | C character array as a second | | | | parameter (which will be used, | | | | if the first parameter is | |