We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac13cf7 commit 1b08ddbCopy full SHA for 1b08ddb
README.md
@@ -14,22 +14,21 @@ There is also advanced search via regex.
14
15
### initilazing:
16
```rust
17
-# #[allow(clippy::needless_doctest_main)]
18
fn main() {
19
// Should be called very early in the program.
20
- egui_logger::builder().init().unwrap();
+ egui_logger::builder().init().unwrap();
21
}
22
```
23
24
### inside your ui logic:
25
26
27
-# fn ui(ctx: &egui::Context) {
28
-egui::Window::new("Log").show(ctx, |ui| {
29
- // draws the logger ui.
30
- egui_logger::logger_ui().show(ui);
31
-});
32
-# }
+fn ui(ctx: &egui::Context) {
+ egui::Window::new("Log").show(ctx, |ui| {
+ // draws the logger ui.
+ egui_logger::logger_ui().show(ui);
+ });
+}
33
34
35
## Alternatives
0 commit comments