Skip to content

Commit 1b08ddb

Browse files
committed
fix weird formatting in README
1 parent ac13cf7 commit 1b08ddb

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,21 @@ There is also advanced search via regex.
1414

1515
### initilazing:
1616
```rust
17-
# #[allow(clippy::needless_doctest_main)]
1817
fn main() {
1918
// Should be called very early in the program.
20-
egui_logger::builder().init().unwrap();
19+
egui_logger::builder().init().unwrap();
2120
}
2221
```
2322

2423
### inside your ui logic:
2524

2625
```rust
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-
# }
26+
fn ui(ctx: &egui::Context) {
27+
egui::Window::new("Log").show(ctx, |ui| {
28+
// draws the logger ui.
29+
egui_logger::logger_ui().show(ui);
30+
});
31+
}
3332
```
3433

3534
## Alternatives

0 commit comments

Comments
 (0)