gh-103025: fix two ctypes doc issues (#103026)

This commit is contained in:
Peter Jiping Xie 2023-03-25 17:12:00 +08:00 committed by GitHub
parent 1fd603fad2
commit 0708437ad0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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::