Skip to content

Commit

Permalink
Document the type NoError
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Dec 25, 2023
1 parent dc19eb4 commit 8604970
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 8604970

Please sign in to comment.