Skip to content

Commit 9a1c70c

Browse files
Fix typos in asyncio, ctypes, and importlib documentation (#148747)
1 parent 5a3f479 commit 9a1c70c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Doc/library/asyncio-dev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ generator can occur in an unexpected order::
304304
try:
305305
yield 2
306306
finally:
307-
await asyncio.sleep(0.1) # immitate some async work
307+
await asyncio.sleep(0.1) # imitate some async work
308308
work_done = True
309309

310310

Doc/library/ctypes.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ If wrapping a shared library with :mod:`!ctypes`, consider determining the
17351735
shared library name at development time, and hardcoding it into the wrapper
17361736
module instead of using :func:`!find_library` to locate the library
17371737
at runtime.
1738-
Also consider addding a configuration option or environment variable to let
1738+
Also consider adding a configuration option or environment variable to let
17391739
users select a library to use, and then perhaps use :func:`!find_library`
17401740
as a default or fallback.
17411741

Doc/library/importlib.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ ABC hierarchy::
286286
This method can potentially yield a very large number of objects, and
287287
it may carry out IO operations when computing these values.
288288

289-
Because of this, it will generaly be desirable to compute the result
289+
Because of this, it will generally be desirable to compute the result
290290
values on-the-fly, as they are needed. As such, the returned object is
291291
only guaranteed to be an :class:`iterable <collections.abc.Iterable>`,
292292
instead of a :class:`list` or other
@@ -340,7 +340,7 @@ ABC hierarchy::
340340
This method can potentially yield a very large number of objects, and
341341
it may carry out IO operations when computing these values.
342342

343-
Because of this, it will generaly be desirable to compute the result
343+
Because of this, it will generally be desirable to compute the result
344344
values on-the-fly, as they are needed. As such, the returned object is
345345
only guaranteed to be an :class:`iterable <collections.abc.Iterable>`,
346346
instead of a :class:`list` or other

0 commit comments

Comments
 (0)