File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -2036,7 +2036,7 @@ Utility functions
2036
2036
.. function :: FormatError([code])
2037
2037
2038
2038
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
2040
2040
:func: `GetLastError `.
2041
2041
2042
2042
.. availability :: Windows
@@ -2142,10 +2142,10 @@ Utility functions
2142
2142
2143
2143
.. function :: WinError(code=None, descr=None)
2144
2144
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.
2149
2149
2150
2150
.. availability :: Windows
2151
2151
You can’t perform that action at this time.
0 commit comments