mirror of
https://github.com/andwati/rustlings.git
synced 2026-11-18 01:55:11 +00:00
functions
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
fn main() {
|
||||
// DON'T EDIT THIS SOLUTION FILE!
|
||||
// It will be automatically filled after you finish the exercise.
|
||||
// Declaring variables requires the `let` keyword.
|
||||
let x = 5;
|
||||
|
||||
println!("x has the value {x}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user