Skip to content

Commit

Permalink
test: fixed failing doc test on input example
Browse files Browse the repository at this point in the history
  • Loading branch information
Arteiii committed Jun 27, 2024
1 parent f6c323c commit d889003
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/menu/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use std::path::Path;

use crossterm::event::{Event, KeyCode, KeyEvent};
use crossterm::{
cursor, execute, terminal,
cursor, execute,
terminal::{disable_raw_mode, enable_raw_mode, Clear, ClearType},
};
use regex::Regex;
Expand Down Expand Up @@ -526,7 +526,7 @@ impl Input {
///
/// # Examples
///
/// ```
/// ```ignore
/// use zenity::menu::input::Confirm;
///
/// // Create a new confirmation prompt with a title and a default value of 'yes'
Expand Down Expand Up @@ -599,7 +599,7 @@ impl Confirm {
/// let confirm = Confirm::new("Do you want to proceed?", true).start();
/// ```
pub fn start(&self) -> bool {
terminal::enable_raw_mode().unwrap();
enable_raw_mode().unwrap();

// render the prompt
execute!(io::stdout(), Print(&self.title)).unwrap();
Expand Down

0 comments on commit d889003

Please sign in to comment.