From 9b6bcf6b93c2dd5f62379db1eca2ea0c68979f7f Mon Sep 17 00:00:00 2001 From: zhaoshouhang Date: Fri, 7 Apr 2023 11:44:28 +0800 Subject: [PATCH] fix: remove spaces --- solutions/formatted-output/formatting.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/formatted-output/formatting.md b/solutions/formatted-output/formatting.md index 2d3ae38..690e982 100644 --- a/solutions/formatted-output/formatting.md +++ b/solutions/formatted-output/formatting.md @@ -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$}");