Rust · Macro
println!
println! prints formatted text to standard output and adds a newline. It supports the same formatting syntax as format!.
Last updated
- Since
- 1.0.0
Syntax
macro_rules! println { () => { ... }; ($($arg:tt)*) => { ... }; }In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
format!eprintln!std::fmtstd::io::stdoutstd::io::Writewriteln!