DEV Community

G-type
G-type

Posted on

Rust: Day two

Hello again developer community. It is my second day learning rust. For those who read the previous post, I primary develop in C, C++, NODE.js and Python. I thought I would learn rust because it might be fun to stop using the same languages I am comfortable. The script for today is a basic usage of string variables and printing them out.

fn main() {
    let name = "Gtref";

    println!("{}", name);
}
Enter fullscreen mode Exit fullscreen mode

And this code produces the output:

Gtref
Enter fullscreen mode Exit fullscreen mode

Top comments (0)