diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-17 06:39:28 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-04-17 06:39:28 (GMT) |
commit | b6a9c9761ca988e1ab69defd45433fac0b2ff89c (patch) | |
tree | 0071290253b0ef28f62f3f22d69be89db2abad50 /Doc/c-api | |
parent | 5562563dd4a745ecac8e6830b2a15042beb5dd47 (diff) | |
parent | 6a7b3a77b4b2be0badd24ee5f0fdbaa2e0e79c3d (diff) | |
download | cpython-b6a9c9761ca988e1ab69defd45433fac0b2ff89c.zip cpython-b6a9c9761ca988e1ab69defd45433fac0b2ff89c.tar.gz cpython-b6a9c9761ca988e1ab69defd45433fac0b2ff89c.tar.bz2 |
Issue #26778: Fixed "a/an/and" typos in code comment, documentation and error
messages.
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/set.rst | 6 | ||||
-rw-r--r-- | Doc/c-api/unicode.rst | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/Doc/c-api/set.rst b/Doc/c-api/set.rst index 7f4d534..8de0394 100644 --- a/Doc/c-api/set.rst +++ b/Doc/c-api/set.rst @@ -128,7 +128,7 @@ or :class:`frozenset` or instances of their subtypes. of brand new frozensets before they are exposed to other code). Return 0 on success or -1 on failure. Raise a :exc:`TypeError` if the *key* is unhashable. Raise a :exc:`MemoryError` if there is no room to grow. Raise a - :exc:`SystemError` if *set* is an not an instance of :class:`set` or its + :exc:`SystemError` if *set* is not an instance of :class:`set` or its subtype. @@ -142,7 +142,7 @@ subtypes but not for instances of :class:`frozenset` or its subtypes. error is encountered. Does not raise :exc:`KeyError` for missing keys. Raise a :exc:`TypeError` if the *key* is unhashable. Unlike the Python :meth:`~set.discard` method, this function does not automatically convert unhashable sets into - temporary frozensets. Raise :exc:`PyExc_SystemError` if *set* is an not an + temporary frozensets. Raise :exc:`PyExc_SystemError` if *set* is not an instance of :class:`set` or its subtype. @@ -150,7 +150,7 @@ subtypes but not for instances of :class:`frozenset` or its subtypes. Return a new reference to an arbitrary object in the *set*, and removes the object from the *set*. Return *NULL* on failure. Raise :exc:`KeyError` if the - set is empty. Raise a :exc:`SystemError` if *set* is an not an instance of + set is empty. Raise a :exc:`SystemError` if *set* is not an instance of :class:`set` or its subtype. diff --git a/Doc/c-api/unicode.rst b/Doc/c-api/unicode.rst index 1ed8140..0b45958 100644 --- a/Doc/c-api/unicode.rst +++ b/Doc/c-api/unicode.rst @@ -367,7 +367,7 @@ These APIs can be used to work with surrogates: .. c:macro:: Py_UNICODE_IS_HIGH_SURROGATE(ch) - Check if *ch* is an high surrogate (``0xD800 <= ch <= 0xDBFF``). + Check if *ch* is a high surrogate (``0xD800 <= ch <= 0xDBFF``). .. c:macro:: Py_UNICODE_IS_LOW_SURROGATE(ch) @@ -450,7 +450,7 @@ APIs: | :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")``. | |