mirror of https://github.com/sharkdp/bat
Small style changes to --list-themes
parent
cda54e4f61
commit
fd2b376ea0
@ -1,5 +1,5 @@
|
|||||||
// Output the square of a number.
|
// Output the square of a number.
|
||||||
fn print_square(num: f64) {
|
fn print_square(num: f64) {
|
||||||
let result = f64::powf(num, 2.0);
|
let result = f64::powf(num, 2.0);
|
||||||
println!("The square of {:.2} is {:.2}.", num, result);
|
println!("The square of {:.2} is {:.2}.", num, result);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue