From ee631e8f18173f4e2b12351ca23e75fd96550e8e Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Fri, 27 Oct 2023 10:52:55 -0500 Subject: [PATCH] Printing padding and alignment --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index e14f506..1621a54 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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