Puzzle 24: Explanation
Let’s learn how to use placeholders in Rust.
We'll cover the following...
We'll cover the following...
Test it out
Press “Run” to see the output of the code.
Explanation
The .. symbol has a few meanings in Rust:
-
The
..symbol without numbers indicates a range containing every available value. -
The statement
1..3creates a ...