From daf613482b1636d01d793958cd0a34072000d2fa Mon Sep 17 00:00:00 2001 From: AzureMarker Date: Tue, 26 Dec 2023 12:34:00 -0500 Subject: [PATCH] Add missing docs to Error::is_timeout --- ctru-rs/src/error.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/ctru-rs/src/error.rs b/ctru-rs/src/error.rs index 186de3d..0be67b7 100644 --- a/ctru-rs/src/error.rs +++ b/ctru-rs/src/error.rs @@ -116,6 +116,7 @@ impl Error { Self::Libc(error_str.to_string_lossy().into()) } + /// Check if the error is a timeout. pub fn is_timeout(&self) -> bool { match *self { Error::Os(code) => R_DESCRIPTION(code) == ctru_sys::RD_TIMEOUT as ctru_sys::Result,