From 1b08ddb7f4d3855116b733b838c2441d26ec247a Mon Sep 17 00:00:00 2001 From: Jacob Date: Sat, 21 Sep 2024 19:56:39 +0200 Subject: [PATCH] fix weird formatting in README --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index edb8456..be0d226 100644 --- a/README.md +++ b/README.md @@ -14,22 +14,21 @@ There is also advanced search via regex. ### initilazing: ```rust -# #[allow(clippy::needless_doctest_main)] fn main() { // Should be called very early in the program. - egui_logger::builder().init().unwrap(); + egui_logger::builder().init().unwrap(); } ``` ### inside your ui logic: ```rust -# fn ui(ctx: &egui::Context) { -egui::Window::new("Log").show(ctx, |ui| { - // draws the logger ui. - egui_logger::logger_ui().show(ui); -}); -# } +fn ui(ctx: &egui::Context) { + egui::Window::new("Log").show(ctx, |ui| { + // draws the logger ui. + egui_logger::logger_ui().show(ui); + }); +} ``` ## Alternatives