Fix doctest
This commit is contained in:
parent
0340e2e6de
commit
b3fa533ac5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue