From 1ea9794e81a4b0d0dd73ec569baa91f19152761b Mon Sep 17 00:00:00 2001 From: Oskar Manhart <52569953+oskardotglobal@users.noreply.github.com> Date: Tue, 10 Oct 2023 15:14:07 +0200 Subject: [PATCH] fix: docstring for `into_error` didn't make any sense --- winapps/src/errors.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/winapps/src/errors.rs b/winapps/src/errors.rs index 5665e8a..fa449db 100644 --- a/winapps/src/errors.rs +++ b/winapps/src/errors.rs @@ -91,8 +91,7 @@ impl IntoError for Option { } } -/// This macro unwraps either a `Result` or an `Option` and returns the value if it exists. -/// It returns a `Result<_, WinappsError>` which can be used to return the error. +/// This macro creates a `Result<_, WinappsError>` from either a `Result` or an `Option`. /// It also works for all other types that implement `IntoError`. /// Used internally by `winapps::unwrap_or_exit!` and `winapps::unwrap_or_panic!`. #[macro_export]