diff --git a/src/egui_app.rs b/src/egui_app.rs index a227cd5..ca1af6c 100644 --- a/src/egui_app.rs +++ b/src/egui_app.rs @@ -94,7 +94,7 @@ lazy_static::lazy_static! { debug_log(&format!("Loading file: {}", path_string)); - // Match the filename + // Match the file extention if path_string.ends_with(".ttf") { // Parse font files let font_data = FontData::from_owned(data); diff --git a/src/misc.rs b/src/misc.rs index a1047a8..afc7572 100644 --- a/src/misc.rs +++ b/src/misc.rs @@ -146,7 +146,6 @@ pub fn newtons_method( } if last_ele_signum != ele_signum { - // Do 50 iterations of newton's method, should be more than accurate let x = { let mut x1: f64 = last_ele.unwrap().x; let mut x2: f64;