]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-103025: fix two ctypes doc issues (#103026)
authorPeter Jiping Xie <peter.jp.xie@gmail.com>
Sat, 25 Mar 2023 09:12:00 +0000 (17:12 +0800)
committerGitHub <noreply@github.com>
Sat, 25 Mar 2023 09:12:00 +0000 (09:12 +0000)
Doc/library/ctypes.rst

index 8fd681286b812dd6ae3a0fa4c67fb2e459585d1a..d49d702e9e79995e3cd5484edcfd51bc090b3c12 100644 (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::