Skip to content

Commit 80388c0

Browse files
committed
fix(verify): show stdout of the last line
1 parent c723bcd commit 80388c0

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)