fix: remove spaces

This commit is contained in:
zhaoshouhang
2023-04-07 11:44:28 +08:00
parent 31c6314cf9
commit 9b6bcf6b93

View File

@ -139,8 +139,8 @@ fn main() {
let (width, precision) = get_format();
let scores = [("sunface", 99.12), ("jack", 60.34)];
/* Make it print:
sunface: 99.1
jack: 60.3
sunface: 99.1
jack: 60.3
*/
for (name, score) in scores {
println!("{name}: {score:width$.precision$}");