Skip to content

Commit

Permalink
Fix code example in egui_demo_lib
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 30, 2023
1 parent d17613c commit 84a6d6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui_demo_lib/src/demo/code_example.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 84a6d6f

Please sign in to comment.