mirror of
https://github.com/sunface/rust-by-practice.git
synced 2025-06-23 12:39:42 +00:00
fix: remove spaces
This commit is contained in:
@ -153,8 +153,8 @@ fn main() {
|
|||||||
let (width, precision) = get_format();
|
let (width, precision) = get_format();
|
||||||
let scores = [("sunface", 99.12), ("jack", 60.34)];
|
let scores = [("sunface", 99.12), ("jack", 60.34)];
|
||||||
/* Make it print:
|
/* Make it print:
|
||||||
sunface: 99.1
|
sunface: 99.1
|
||||||
jack: 60.3
|
jack: 60.3
|
||||||
*/
|
*/
|
||||||
for (name, score) in scores {
|
for (name, score) in scores {
|
||||||
println!("{name}: __");
|
println!("{name}: __");
|
||||||
|
@ -153,8 +153,8 @@ fn main() {
|
|||||||
let (width, precision) = get_format();
|
let (width, precision) = get_format();
|
||||||
let scores = [("sunface", 99.12), ("jack", 60.34)];
|
let scores = [("sunface", 99.12), ("jack", 60.34)];
|
||||||
/* 让下面的代码输出:
|
/* 让下面的代码输出:
|
||||||
sunface: 99.1
|
sunface: 99.1
|
||||||
jack: 60.3
|
jack: 60.3
|
||||||
*/
|
*/
|
||||||
for (name, score) in scores {
|
for (name, score) in scores {
|
||||||
println!("{name}: __");
|
println!("{name}: __");
|
||||||
|
Reference in New Issue
Block a user