Printing padding and alignment

This commit is contained in:
Daniel Flanagan 2023-10-27 10:52:55 -05:00
parent ee087669af
commit ee631e8f18
Signed by: lytedev
GPG key ID: 5B2020A0F9921EF4

View file

@ -2,8 +2,10 @@
fn main() {
let c: char = '\u{D1EA}';
let bytes = b"yoyoyo";
let me = "meeeeeeeeeeeeeeeeeeeeeeeeeee";
println!("Hello, world! {c}");
println!("Hello, bytes! {bytes:?}");
println!("Hello, {me: <4.12}, meet the real {me}.");
}
// if I were to write a webapp, I would like to avoid postgres