diff --git a/en/src/formatted-output/formatting.md b/en/src/formatted-output/formatting.md index 1918916..1d6b274 100644 --- a/en/src/formatted-output/formatting.md +++ b/en/src/formatted-output/formatting.md @@ -153,8 +153,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}: __"); 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$}"); diff --git a/zh-CN/src/formatted-output.md b/zh-CN/src/formatted-output.md index 3257f59..7ba65e8 100644 --- a/zh-CN/src/formatted-output.md +++ b/zh-CN/src/formatted-output.md @@ -153,8 +153,8 @@ fn main() { let (width, precision) = get_format(); let scores = [("sunface", 99.12), ("jack", 60.34)]; /* 让下面的代码输出: - sunface: 99.1 - jack: 60.3 + sunface: 99.1 + jack: 60.3 */ for (name, score) in scores { println!("{name}: __");