8000 Apply suggestions. · python/cpython@3ebdc60 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3ebdc60

Browse files
committed
Apply suggestions.
1 parent aa080c0 commit 3ebdc60

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Doc/library/ctypes.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,7 +2036,7 @@ Utility functions
20362036
.. function:: FormatError([code])
20372037

20382038
Returns a textual description of the error code *code*. If no error code is
2039-
specified, the last error code is used by calling the Windows api function
2039+
specified, the last error code is used by calling the Windows API function
20402040
:func:`GetLastError`.
20412041

20422042
.. availability:: Windows
@@ -2142,10 +2142,10 @@ Utility functions
21422142

21432143
.. function:: WinError(code=None, descr=None)
21442144

2145-
This function is probably the worst-named thing in ``ctypes``. It creates an
2146-
instance of :exc:`OSError`. If *code* is not specified, :func:`GetLastError`
2147-
is called to determine the error code. If *descr* is not specified,
2148-
:func:`FormatError` is called to get a textual description of the error.
2145+
Creates an instance of :exc:`OSError`. If *code* is not specified,
2146+
``GetLastError`` is called to determine the error code. If *descr* is not
2147+
specified, :func:`FormatError` is called to get a textual description of the
2148+
error.
21492149

21502150
.. availability:: Windows
21512151

0 commit comments

Comments
 (0)
0