Skip to content

Commit a951fe9

Browse files
authored
Updated example for Confirm
`Confirm::with_text` was deprecated. The example should no longer use it.
1 parent ef0cf6d commit a951fe9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prompts/confirm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use console::Term;
1212
/// # fn test() -> Result<(), Box<std::error::Error>> {
1313
/// use dialoguer::Confirm;
1414
///
15-
/// if Confirm::new().with_text("Do you want to continue?").interact()? {
15+
/// if Confirm::new().with_prompt("Do you want to continue?").interact()? {
1616
/// println!("Looks like you want to continue");
1717
/// } else {
1818
/// println!("nevermind then :(");

0 commit comments

Comments
 (0)