Skip to content

Commit 32d2c38

Browse files
authored
Merge pull request #1899 from kazu728/fix-verify-stdout-buffering
show stdout of the final line
2 parents c723bcd + 80388c0 commit 32d2c38

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/verify.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,15 @@ pub fn verify<'a>(
3838
percentage += 100.0 / total as f32;
3939
bar.inc(1);
4040
bar.set_message(format!("({:.1} %)", percentage));
41+
if bar.position() == total as u64 {
42+
println!(
43+
"Progress: You completed {} / {} exercises ({:.1} %).",
44+
bar.position(),
45+
total,
46+
percentage
47+
);
48+
bar.finish();
49+
}
4150
}
4251
Ok(())
4352
}

0 commit comments

Comments
 (0)