Loading...
CONCEPT

Rust: Printing to console

Learn how to print to the console in Rust.

avatar
rohitpaulk
Concept Author
3 min reading time

The most common way to write to console in Rust is using println!:

// This prints "Hello world" to the console
println!("Hello world")