Skip to content

Commit

Permalink
change doc example return type
Browse files Browse the repository at this point in the history
  • Loading branch information
imrn99 committed May 5, 2024
1 parent 9ad26a9 commit 7a7a9e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/structure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pub enum IntegraalError {
///
/// ```rust
/// # use integraal::{DomainDescriptor, ComputeMethod, FunctionDescriptor, Integraal, IntegraalError};
/// # fn main() -> Result<f64, IntegraalError>{
/// # fn main() {
/// // describe domain, function & computation method
/// let domain = DomainDescriptor::Uniform {
/// start: 0.0,
Expand All @@ -49,7 +49,7 @@ pub enum IntegraalError {
/// // build the integral & compute it
/// let mut integral = Integraal::default();
/// integral.domain(domain).function(function).method(method);
/// integral.compute()
/// assert!(integral.compute().is_ok())
/// # }
/// ```
#[derive(Default)]
Expand Down

0 comments on commit 7a7a9e7

Please sign in to comment.