diff options
author | Jim Fasarakis-Hilliard <d.f.hilliard@gmail.com> | 2017-02-24 20:32:54 (GMT) |
---|---|---|
committer | Mariatta <Mariatta@users.noreply.github.com> | 2017-02-24 20:32:54 (GMT) |
commit | 132ac381fe7eb593e3d7c63926f90285bba13cdc (patch) | |
tree | 57ea9baf6b71cd25ce4bb52fcc3631aa5712bb6c /Doc/reference | |
parent | fba79dc568030091f84110fccac4cb64c2fef020 (diff) | |
download | cpython-132ac381fe7eb593e3d7c63926f90285bba13cdc.zip cpython-132ac381fe7eb593e3d7c63926f90285bba13cdc.tar.gz cpython-132ac381fe7eb593e3d7c63926f90285bba13cdc.tar.bz2 |
Fix small typos in expressions.rst (GH-276)
Diffstat (limited to 'Doc/reference')
-rw-r--r-- | Doc/reference/expressions.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 3a4b805..f4a8269 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -190,7 +190,7 @@ Since Python 3.6, in an :keyword:`async def` function, an :keyword:`async for` clause may be used to iterate over a :term:`asynchronous iterator`. A comprehension in an :keyword:`async def` function may consist of either a :keyword:`for` or :keyword:`async for` clause following the leading -expression, may contan additonal :keyword:`for` or :keyword:`async for` +expression, may contain additional :keyword:`for` or :keyword:`async for` clauses, and may also use :keyword:`await` expressions. If a comprehension contains either :keyword:`async for` clauses or :keyword:`await` expressions it is called an @@ -1317,7 +1317,7 @@ built-in types. * Sequences (instances of :class:`tuple`, :class:`list`, or :class:`range`) can be compared only within each of their types, with the restriction that ranges do not support order comparison. Equality comparison across these types - results in unequality, and ordering comparison across these types raises + results in inequality, and ordering comparison across these types raises :exc:`TypeError`. Sequences compare lexicographically using comparison of corresponding |