diff options
author | Martin Panter <vadmium+py@gmail.com> | 2016-05-08 13:45:55 (GMT) |
---|---|---|
committer | Martin Panter <vadmium+py@gmail.com> | 2016-05-08 13:45:55 (GMT) |
commit | 4f23cabc16027f0b6474ac8c0c1782ec5605e63b (patch) | |
tree | 8df6bff62fc3979049d5bcacead5330313305321 /Doc | |
parent | f2f1c57b7e4dcd418c278dd45161a5de65bc05d3 (diff) | |
download | cpython-4f23cabc16027f0b6474ac8c0c1782ec5605e63b.zip cpython-4f23cabc16027f0b6474ac8c0c1782ec5605e63b.tar.gz cpython-4f23cabc16027f0b6474ac8c0c1782ec5605e63b.tar.bz2 |
Corrections for a/an in code comments and documentation
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/c-api/string.rst | 2 | ||||
-rw-r--r-- | Doc/library/codecs.rst | 2 | ||||
-rw-r--r-- | Doc/library/ctypes.rst | 2 | ||||
-rw-r--r-- | Doc/library/imageop.rst | 2 | ||||
-rw-r--r-- | Doc/library/stdtypes.rst | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/string.rst b/Doc/c-api/string.rst index 32dc274..a8baf29 100644 --- a/Doc/c-api/string.rst +++ b/Doc/c-api/string.rst @@ -88,7 +88,7 @@ called with a non-string parameter. | :attr:`%%` | *n/a* | The literal % character. | +-------------------+---------------+--------------------------------+ | :attr:`%c` | int | A single character, | - | | | represented as an C int. | + | | | represented as a C int. | +-------------------+---------------+--------------------------------+ | :attr:`%d` | int | Exactly equivalent to | | | | ``printf("%d")``. | diff --git a/Doc/library/codecs.rst b/Doc/library/codecs.rst index 80f3635..9d52fe1 100644 --- a/Doc/library/codecs.rst +++ b/Doc/library/codecs.rst @@ -909,7 +909,7 @@ particular, the following variants typically exist: * an ISO 8859 codeset -* a Microsoft Windows code page, which is typically derived from a 8859 codeset, +* a Microsoft Windows code page, which is typically derived from an 8859 codeset, but replaces control characters with additional graphic characters * an IBM EBCDIC code page diff --git a/Doc/library/ctypes.rst b/Doc/library/ctypes.rst index cbf0e35..8e3020f 100644 --- a/Doc/library/ctypes.rst +++ b/Doc/library/ctypes.rst @@ -1873,7 +1873,7 @@ Utility functions allows specifying the size of the array if the length of the string should not be used. - If the first parameter is a 8-bit string, it is converted into a unicode string + If the first parameter is an 8-bit string, it is converted into a unicode string according to ctypes conversion rules. diff --git a/Doc/library/imageop.rst b/Doc/library/imageop.rst index e6cb669..674b029 100644 --- a/Doc/library/imageop.rst +++ b/Doc/library/imageop.rst @@ -49,7 +49,7 @@ The module defines the following variables and functions: .. function:: grey2mono(image, width, height, threshold) - Convert a 8-bit deep greyscale image to a 1-bit deep image by thresholding all + Convert an 8-bit deep greyscale image to a 1-bit deep image by thresholding all the pixels. The resulting image is tightly packed and is probably only useful as an argument to :func:`mono2grey`. diff --git a/Doc/library/stdtypes.rst b/Doc/library/stdtypes.rst index 9224b81..2daaf27 100644 --- a/Doc/library/stdtypes.rst +++ b/Doc/library/stdtypes.rst @@ -2749,7 +2749,7 @@ is generally interpreted as simple bytes. .. attribute:: shape A tuple of integers the length of :attr:`ndim` giving the shape of the - memory as a N-dimensional array. + memory as an N-dimensional array. .. attribute:: ndim |