giving a type to a variable

This commit is contained in:
Hariettemaina 2022-09-09 14:34:19 +03:00
parent b7bcbed9fa
commit 4723312a49
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
// variables5.rs
// Execute `rustlings hint variables5` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() {
let number = "T-H-R-E-E"; // don't change this line

View File

@ -3,7 +3,7 @@
// I AM NOT DONE
const NUMBER = 3;
const NUMBER: i32 = 3;
fn main() {
println!("Number {}", NUMBER);
}