println is a function in std::io that prints strings to standard out.
println! is a macro that allows for formatted output (e.g. println!("hello,
{}!", "world")). More details here:
http://static.rust-lang.org/doc/master/std/fmt/index.html

Steven Fackler


On Fri, Mar 14, 2014 at 2:52 PM, Renato Lenzi <[email protected]> wrote:

> Simple question:
>
> println("hello");
>
> or
>
> println!("hello!");
>
> Why (or when) should we use one or the other form?? Differences?
>
> Regards.
>
> _______________________________________________
> Rust-dev mailing list
> [email protected]
> https://mail.mozilla.org/listinfo/rust-dev
>
>
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to