From d4353072594f683d24ee02575f0e03eeb2ef108c Mon Sep 17 00:00:00 2001 From: Simon Gardling Date: Wed, 13 Apr 2022 08:42:48 -0400 Subject: [PATCH] fix doc --- src/math_app.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/math_app.rs b/src/math_app.rs index 7c399b2..b57fc6e 100644 --- a/src/math_app.rs +++ b/src/math_app.rs @@ -60,7 +60,7 @@ impl Assets { } lazy_static::lazy_static! { - // Load all of the data from the compressed tarball + /// Load all of the data from the compressed tarball static ref ASSETS: Assets = { let start = instant::Instant::now(); @@ -316,8 +316,7 @@ pub struct MathApp { /// Stores vector of functions functions: Vec, - /// Contains the list of Areas calculated (the vector of f64) and time it - /// took for the last frame (the Duration). Stored in a Tuple. + /// Contains the list of Areas calculated (the vector of f64) and time it took for the last frame (the Duration). Stored in a Tuple. last_info: (Vec>, Duration), /// Stores whether or not dark mode is enabled @@ -533,8 +532,7 @@ impl MathApp { } impl epi::App for MathApp { - /// Called each time the UI needs repainting, which may be many times per - /// second. + /// Called each time the UI needs repainting, which may be many times per second. fn update(&mut self, ctx: &Context, _frame: &mut epi::Frame) { // start timer let start = instant::Instant::now(); @@ -545,9 +543,7 @@ impl epi::App for MathApp { false => Visuals::light(), }); - // if text boxes aren't in focus, allow H keybind to toggle side panel. - // this is behind this check as if it wasn't, it would trigger if the user - // presses the h key in a text box as well + // if keyboard input isn't being grabed, check for key combos if !ctx.wants_keyboard_input() { self.opened .side_panel