From 0f2345ed39f482082ef198c5d824ad37aabb4b10 Mon Sep 17 00:00:00 2001 From: Enyium <123484196+Enyium@users.noreply.github.com> Date: Thu, 7 Dec 2023 22:24:30 +0100 Subject: [PATCH] Add doc comment for `windows::core::Error::from_win32()` --- crates/libs/core/src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/libs/core/src/error.rs b/crates/libs/core/src/error.rs index b851a21311..995c93e0df 100644 --- a/crates/libs/core/src/error.rs +++ b/crates/libs/core/src/error.rs @@ -23,6 +23,7 @@ impl Error { } } + /// Creates a new `Error` from the Win32 error code returned by `GetLastError()`. pub fn from_win32() -> Self { unsafe { Self { code: HRESULT::from_win32(crate::imp::GetLastError()), info: None } } }