Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[ctypes doc] 1/ Rectify typo 'varadic' functions to 'variadic'. 2/ Fi…
…x doctest directive mistake.
  • Loading branch information
peterjpxie committed Mar 25, 2023
commit 9c5634c9a1428c1da0e7d8c0dbc928e4143611c0
6 changes: 3 additions & 3 deletions Doc/library/ctypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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::

Expand Down