]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Grammatical improvements for ctypes 'winmode' documentation (GH-19167)
authorDavid Miguel Susano Pinto <carandraug+dev@gmail.com>
Mon, 28 Nov 2022 16:05:21 +0000 (16:05 +0000)
committerGitHub <noreply@github.com>
Mon, 28 Nov 2022 16:05:21 +0000 (16:05 +0000)
Doc/library/ctypes.rst

index 71e5545ffe47c64449cf4d3fce92a014dc7b4f4d..fd5df875ed74d5f32abb22a06f7deae16823881d 100644 (file)
@@ -1440,8 +1440,8 @@ copy of the windows error code.
 
 The *winmode* parameter is used on Windows to specify how the library is loaded
 (since *mode* is ignored). It takes any value that is valid for the Win32 API
-``LoadLibraryEx`` flags parameter. When omitted, the default is to use the flags
-that result in the most secure DLL load to avoiding issues such as DLL
+``LoadLibraryEx`` flags parameter. When omitted, the default is to use the
+flags that result in the most secure DLL load, which avoids issues such as DLL
 hijacking. Passing the full path to the DLL is the safest way to ensure the
 correct library and dependencies are loaded.