From c536f1eebbe6d8a580fb2b70d9005031757ce963 Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Mon, 14 Feb 2022 10:00:48 -0500 Subject: [PATCH] fix typo --- src/func_plot.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/func_plot.rs b/src/func_plot.rs index 1f05525..dca1263 100644 --- a/src/func_plot.rs +++ b/src/func_plot.rs @@ -61,7 +61,7 @@ fn integral_rectangles( .map(|e| { let x: f32 = ((e as f32) * step) + min_x; - let x2: f32 = match x > 0.1 { + let x2: f32 = match x > 0.0 { true => x + step, false => x - step, };