diff --git a/egui/src/widgets/text_edit.rs b/egui/src/widgets/text_edit.rs index f05667054..8a67888ea 100644 --- a/egui/src/widgets/text_edit.rs +++ b/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 /// }