Fixed version of print

cat-town
Dan Buch 4 years ago
parent 459bfb7caa
commit bef89a0bee
Signed by: meatballhat
GPG Key ID: 9685130D8B763EA7

@ -1 +1,2 @@
/hello/hello
/hello/print

@ -14,10 +14,14 @@ fn main() {
println!("{number:>0width$}", number=1, width=6);
println!("My name is {0}, {1} {0}", "Bond");
println!("My name is {0}, {1} {0}", "Bond", "James");
#[allow(dead_code)]
#[derive(Debug)]
struct Structure(i32);
println!("This struct `{}` won't print...", Structure(3));
println!("This struct `{:?}` will print...", Structure(3));
let pi = 3.141592;
println!("Pi is roughly {:.3}", pi);
}

Loading…
Cancel
Save