diff --git a/src/lib.rs b/src/lib.rs index 7be79d1..0bf13ad 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,9 +55,11 @@ use std::{ }; #[cfg(feature = "nightly")] +/// Type indicating that no error is raised by the function. pub type NoError = !; #[cfg(not(feature = "nightly"))] #[derive(Debug)] +/// Type indicating that no error is raised by the function. pub enum NoError {} /// Errors that may be returned by the root finding methods.