Skip to content

Commit 36cf1bc

Browse files
peterjpxiemiss-islington
authored andcommitted
pythongh-103025: fix two ctypes doc issues (pythonGH-103026)
(cherry picked from commit 0708437) Co-authored-by: Peter Jiping Xie <[email protected]>
1 parent 7513c6b commit 36cf1bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/ctypes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,8 @@ that they can be converted to the required C data type::
375375

376376
.. _ctypes-calling-variadic-functions:
377377

378-
Calling varadic functions
379-
^^^^^^^^^^^^^^^^^^^^^^^^^
378+
Calling variadic functions
379+
^^^^^^^^^^^^^^^^^^^^^^^^^^
380380

381381
On a lot of platforms calling variadic functions through ctypes is exactly the same
382382
as calling functions with a fixed number of parameters. On some platforms, and in
@@ -485,7 +485,7 @@ a string pointer and a char, and returns a pointer to a string::
485485

486486
If you want to avoid the ``ord("x")`` calls above, you can set the
487487
:attr:`argtypes` attribute, and the second argument will be converted from a
488-
single character Python bytes object into a C char::
488+
single character Python bytes object into a C char:
489489

490490
>>> strchr.restype = c_char_p
491491
>>> strchr.argtypes = [c_char_p, c_char]

0 commit comments

Comments
 (0)