Browse Source

Fix doctest

pull/46/head
Emil Ernerfeldt 4 years ago
parent
commit
b3fa533ac5
  1. 2
      egui/src/widgets/text_edit.rs

2
egui/src/widgets/text_edit.rs

@ -15,7 +15,7 @@ pub(crate) struct State {
/// ```
/// # let mut ui = egui::Ui::__test();
/// # let mut my_string = String::new();
/// let response = ui.add(egui::TextEdit::new(&mut my_string).multiline(false));
/// let response = ui.add(egui::TextEdit::singleline(&mut my_string));
/// if response.lost_kb_focus {
/// // use my_string
/// }

Loading…
Cancel
Save