diff --git a/src/os/windows/mod.rs b/src/os/windows/mod.rs index d4e09ab..1ff4a7d 100644 --- a/src/os/windows/mod.rs +++ b/src/os/windows/mod.rs @@ -33,7 +33,7 @@ unsafe impl Sync for Library {} impl Library { /// Find and load a shared library (module). /// - /// Corresponds to `LoadLibraryExW(filename, NULL, 0)` which is equivalent to `LoadLibraryW(filename)` + /// Corresponds to `LoadLibraryExW(filename, reserved: NULL, flags: 0)` which is equivalent to `LoadLibraryW(filename)` #[inline] pub fn new>(filename: P) -> Result { Library::load_with_flags(filename, 0) @@ -44,7 +44,7 @@ impl Library { /// Locations where library is searched for is platform specific and can’t be adjusted /// portably. /// - /// Corresponds to `LoadLibraryExW(filename, NULL, flags)`. + /// Corresponds to `LoadLibraryExW(filename, reserved: NULL, flags)`. pub fn load_with_flags>(filename: P, flags: DWORD) -> Result { let wide_filename: Vec = filename.as_ref().encode_wide().chain(Some(0)).collect(); let _guard = ErrorModeGuard::new();