Skip to content

Commit

Permalink
fix weird formatting in README
Browse files Browse the repository at this point in the history
  • Loading branch information
RegenJacob committed Sep 21, 2024
1 parent ac13cf7 commit 1b08ddb
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b08ddb

Please sign in to comment.