1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 23:13:13 -04:00

Fix code example in egui_demo_lib

This commit is contained in:
Emil Ernerfeldt
2023-11-30 17:53:34 +01:00
parent d17613c242
commit 84a6d6f2ab

View File

@@ -37,7 +37,7 @@ impl CodeExample {
show_code(
ui,
r#"egui::Slider::new(&mut self.age, 0..=120).text("age")"#,
r#"ui.add(egui::Slider::new(&mut self.age, 0..=120).text("age"));"#,
);
ui.add(egui::Slider::new(&mut self.age, 0..=120).text("age"));
ui.end_row();