Merge pull request #351 from Co1lin/patch-1

fix wrong indents and float number formatting
pull/354/head
Sunface 3 years ago committed by GitHub
commit f9fb525546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -126,8 +126,8 @@ fn main() {
42.0_f32,
];
// 打印数组中第一个值,其中控制小数位为2位
println!("{:02}", forty_twos[0]);
// 打印数组中第一个值,并控制小数位为2位
println!("{:.2}", forty_twos[0]);
}
```

Loading…
Cancel
Save