Skip to content

Commit 0a47a4a

Browse files
committed
🐛 Critical Fix
1 parent 776c449 commit 0a47a4a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "console-utils"
3-
version = "1.2.3"
3+
version = "1.2.4"
44
edition = "2021"
55
authors = ["Nils Wrenger <[email protected]>"]
66
description = "Cli input utilities."

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ pub fn spinner(mut time: f64, spinner_type: SpinnerType) {
271271
/// ```
272272
pub fn reveal(str: &str, time_between: f64) {
273273
for i in 0..str.len() {
274-
print!("{:?}", str.chars().nth(i).unwrap());
274+
print!("{}", str.chars().nth(i).unwrap_or(' '));
275275
io::stdout().flush().unwrap();
276276
thread::sleep(Duration::from_secs_f64(time_between));
277277
}

0 commit comments

Comments
 (0)