diff options
author | Peter Jiping Xie <peter.jp.xie@gmail.com> | 2023-03-25 09:12:00 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-25 09:12:00 (GMT) |
commit | 0708437ad043657f992cb985fd5c37e1ac052f93 (patch) | |
tree | 911620d6a162dd5c6e98811c3f400bb10d004dfd /Doc | |
parent | 1fd603fad20187496619930e5b74aa7690425926 (diff) | |
download | cpython-0708437ad043657f992cb985fd5c37e1ac052f93.zip cpython-0708437ad043657f992cb985fd5c37e1ac052f93.tar.gz cpython-0708437ad043657f992cb985fd5c37e1ac052f93.tar.bz2 |
gh-103025: fix two ctypes doc issues (#103026)
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/ctypes.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index 8fd6812..d49d702 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -375,8 +375,8 @@ that they can be converted to the required C data type:: .. _ctypes-calling-variadic-functions: -Calling varadic functions -^^^^^^^^^^^^^^^^^^^^^^^^^ +Calling variadic functions +^^^^^^^^^^^^^^^^^^^^^^^^^^ On a lot of platforms calling variadic functions through ctypes is exactly the same as calling functions with a fixed number of parameters. On some platforms, and in @@ -508,7 +508,7 @@ a string pointer and a char, and returns a pointer to a string:: If you want to avoid the ``ord("x")`` calls above, you can set the :attr:`argtypes` attribute, and the second argument will be converted from a -single character Python bytes object into a C char:: +single character Python bytes object into a C char: .. doctest:: |