Printing a string fixed
- With or without interpolation
examples/intro/formatting-required-fixed/src/main.rs
fn main() { let name = "Foo"; println!("{}", name); println!("{name}"); }
Foo Foo
fn main() { let name = "Foo"; println!("{}", name); println!("{name}"); }
Foo Foo