rustlings vec primitive types
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fn main() {
|
||||
let number = "T-H-R-E-E"; // Don't change this line
|
||||
println!("Spell a number: {number}");
|
||||
|
||||
// TODO: Fix the compiler error by changing the line below without renaming the variable.
|
||||
let number = &3.to_string();
|
||||
println!("Number plus two is: {}", number.to_owned() + &2.to_string());
|
||||
}
|
||||
Reference in New Issue
Block a user