File tree 1 file changed +5
-6
lines changed
1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -2035,9 +2035,9 @@ Utility functions
2035
2035
2036
2036
.. function :: FormatError([code])
2037
2037
2038
- Returns a textual description of the error code *code *. If no
2039
- error code is specified, the last error code is used by calling the Windows
2040
- api function GetLastError.
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
2040
+ :func: ` GetLastError ` .
2041
2041
2042
2042
.. availability :: Windows
2043
2043
@@ -2142,9 +2142,8 @@ 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
2146
- creates an instance of :exc: `OSError `. If *code * is not specified,
2147
- ``GetLastError `` is called to determine the error code. If *descr * is not
2145
+ Creates an instance of :exc: `OSError `. If *code * is not specified,
2146
+ :func: `GetLastError ` is called to determine the error code. If *descr * is not
2148
2147
specified, :func: `FormatError ` is called to get a textual description of the
2149
2148
error.
2150
2149
You can’t perform that action at this time.
0 commit comments