Skip to content

Commit

Permalink
Fix doc test
Browse files Browse the repository at this point in the history
  • Loading branch information
relf committed Apr 2, 2024
1 parent d6521c5 commit 17fa9f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,16 @@ pub struct StopTols {
/// &[(-10., 10.), (-10., 10.)],
/// &cons,
/// (),
/// 200,
/// 100,
/// None
/// ) {
/// Ok((status, x_opt, y_opt)) => {
/// println!("status = {:?}", status);
/// println!("x_opt = {:?}", x_opt);
/// println!("y_opt = {}", y_opt);
/// # assert_abs_diff_eq!(y_opt, 10.0);
/// # assert_abs_diff_eq!(y_opt, 10.0, epsilon=1e-8);
/// }
/// Err((e, _, _)) => println!("Optim error: {:?}", e),
/// Err((e, _, _)) => panic!("Optim error: {:?}", e),
/// }
/// ```
///
Expand Down

0 comments on commit 17fa9f2

Please sign in to comment.