mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-28 08:05:55 +00:00
Changed preview code
This commit is contained in:
1 parent
38544ed735
commit
4ea3e6bbb7
3 files changed
+8
-8
No files matched your search
@@ -1,6 +0,0 @@
|
||||
|
||||
// Hello World
|
||||
fn main() {
|
||||
println!("Hello World!");
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// Output the square of a number.
|
||||
fn print_square(num: f64) {
|
||||
let result = f64::powf(num, 2.0);
|
||||
println!("The square of {:.2} is {:.2}.", num, result);
|
||||
}
|
||||
Reference in new issue
Block a user