diff --git a/src/menu/input.rs b/src/menu/input.rs index b4a1694..95107ed 100644 --- a/src/menu/input.rs +++ b/src/menu/input.rs @@ -232,20 +232,11 @@ impl Input { /// /// # Example /// - /// ``` - /// # use std::thread; - /// # use std::time::Duration; - /// use zenity::menu::input::{Input, Requirements}; - /// - /// # // spawn a new thread to run the input - /// # let input_thread = thread::spawn(|| { - /// // initialize the input - /// let input = Input::new("Name", Requirements::default()).start(); - /// # }); - /// # // wait for 5 seconds before joining the thread - /// # thread::sleep(Duration::from_secs(5)); - /// # // assert true after waiting for 5 seconds - /// # assert!(true); + /// ```rust-ignore + /// use zenity::menu::input::{Input, Requirements}; + /// + /// // init and start directly + /// let input = Input::new("Name", Requirements::default()).start(); /// ``` pub fn start(&self) -> Box { let mut force: bool = false;