Rust: Day two

2026-11-01来源 dev.to RustEnglish

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); } 

And this code produces the output:

Gtref 

原文:https://www.a8q9.cn/en/article/rust-day-two-188731.html

相关文章