Skip to content

Commit

Permalink
chore: remove unnecessary println statements from examples
Browse files Browse the repository at this point in the history
  • Loading branch information
roele committed Feb 22, 2024
1 parent 9798d23 commit 49b709c
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ fn main() {
])
.validation(notempty_minlen);
let i = t.run().expect("error running input");
println!("Input: {}", i);
}
```

Expand All @@ -68,7 +67,6 @@ fn main() {
.prompt("Password: ")
.password(true);
let i = t.run().expect("error running input");
println!("Password: {}", i);
}
```

Expand Down Expand Up @@ -140,7 +138,6 @@ fn main() {
.affirmative("Yes!")
.negative("No.");
let yes = ms.run().expect("error running confirm");
println!("yes: {}", yes);
}
```

Expand All @@ -163,7 +160,6 @@ fn main() {
sleep(Duration::from_secs(2));
})
.expect("error running spinner");
println!("Done!");
}
```

Expand Down
1 change: 0 additions & 1 deletion examples/confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ fn main() {
.affirmative("Yes!")
.negative("No.");
let yes = ms.run().expect("error running confirm");
println!("yes: {}", yes);
}
1 change: 0 additions & 1 deletion examples/input-password.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ fn main() {
.prompt("Password: ")
.password(true);
let i = t.run().expect("error running input");
println!("Password: {}", i);
}
1 change: 0 additions & 1 deletion examples/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,4 @@ fn main() {
])
.validation(notempty_minlen);
let i = t.run().expect("error running input");
println!("Input: {}", i);
}
1 change: 0 additions & 1 deletion src/confirm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ use crate::theme::Theme;
/// .affirmative("Yes!")
/// .negative("No.");
/// let yes = confirm.run().expect("error running confirm");
/// println!("yes: {}", yes);
/// ```
pub struct Confirm<'a> {
/// The title of the selector
Expand Down

0 comments on commit 49b709c

Please sign in to comment.