From de3897d8366857dd8841c25878a8ad407a77b233 Mon Sep 17 00:00:00 2001 From: Stanislav Date: Wed, 3 Aug 2022 23:33:59 +0300 Subject: [PATCH] fix docs --- eframe/src/epi.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/eframe/src/epi.rs b/eframe/src/epi.rs index 4bc54f3f..c830b7ec 100644 --- a/eframe/src/epi.rs +++ b/eframe/src/epi.rs @@ -52,12 +52,12 @@ pub trait App { /// To force a repaint, call [`egui::Context::request_repaint`] at any time (e.g. from another thread). fn update(&mut self, ctx: &egui::Context, frame: &mut Frame); - // Handle to the app. - // - // Can be used from web to interact or other external context - // Implementation is needed, because downcasting Box -> Box to get &ConcreteApp is not simple in current rust. - // - // Just return &mut *self + /// Handle to the app. + /// + /// Can be used from web to interact or other external context + /// Implementation is needed, because downcasting Box -> Box to get &ConcreteApp is not simple in current rust. + /// + /// Just return &mut *self #[cfg(target_arch = "wasm32")] fn as_any_mut(&mut self) -> &mut dyn Any;