-
This note is about how to learn rust and build projects based on Rust.
-
I will share the resources from web.
-
How to run src/main.rs
- rustc main.rs
- ./main
-
if and let
fn main() { let condition = true; let number = if condition { 5 } else { 6 }; println!("The value of number is: {}", number);
}