summaryrefslogtreecommitdiffstats
path: root/Doc/library/ctypes.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-04-17 06:37:36 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-04-17 06:37:36 (GMT)
commit9a118f1dc3f23ead28f31fdc5144ad5ce01e5b7f (patch)
tree4878492acdcc033c71d4be46967537291d433cb1 /Doc/library/ctypes.rst
parent0bb165ecc114fcf7ce1df454355c4cbbef8b63e9 (diff)
downloadcpython-9a118f1dc3f23ead28f31fdc5144ad5ce01e5b7f.zip
cpython-9a118f1dc3f23ead28f31fdc5144ad5ce01e5b7f.tar.gz
cpython-9a118f1dc3f23ead28f31fdc5144ad5ce01e5b7f.tar.bz2
Issue #26778: Fixed "a/an/and" typos in code comment and documentation.
Diffstat (limited to 'Doc/library/ctypes.rst')
-rw-r--r--Doc/library/ctypes.rst6
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst
index e58d954..cbf0e35 100644
--- a/Doc/library/ctypes.rst
+++ b/Doc/library/ctypes.rst
@@ -657,7 +657,7 @@ positive integer::
TenPointsArrayType = POINT * 10
-Here is an example of an somewhat artificial data type, a structure containing 4
+Here is an example of a somewhat artificial data type, a structure containing 4
POINTs among other stuff::
>>> from ctypes import *
@@ -1576,7 +1576,7 @@ They are instances of a private class:
tuple, this method allows adapting the actual argument to an object that
the foreign function accepts. For example, a :class:`c_char_p` item in
the :attr:`argtypes` tuple will convert a unicode string passed as
- argument into an byte string using ctypes conversion rules.
+ argument into a byte string using ctypes conversion rules.
New: It is now possible to put items in argtypes which are not ctypes
types, but each item must have a :meth:`from_param` method which returns a
@@ -1964,7 +1964,7 @@ Utility functions
.. function:: POINTER(type)
This factory function creates and returns a new ctypes pointer type. Pointer
- types are cached an reused internally, so calling this function repeatedly is
+ types are cached and reused internally, so calling this function repeatedly is
cheap. *type* must be a ctypes type.