From 103355515a0bcbadf8f12b8f66bf05d0a11f119e Mon Sep 17 00:00:00 2001 From: TechiePi Date: Sun, 9 Oct 2022 21:14:16 +0200 Subject: [PATCH] Improve ``type Residual`` comment --- 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 1acb855..5b0caf1 100644 --- a/ctru-rs/src/error.rs +++ b/ctru-rs/src/error.rs @@ -15,6 +15,7 @@ impl Try for LibCtruResult { type Output = (); // This type is passed to [FromResidual::from_residual] when the LibCtruResult is an error, // so this type implies "this is a result than CAN'T be `Ok`" (Infallible is the same as !) + // The purpose of this type is to _only_ bring information about the *Error* type Residual = crate::Result; fn from_output(_: Self::Output) -> Self {