From dd23da3ff01f5936d9499f37ca2d26f1fbf59583 Mon Sep 17 00:00:00 2001 From: Hariettemaina Date: Thu, 8 Sep 2022 17:07:29 +0300 Subject: [PATCH] deaclare a variable --- exercises/intro/intro1.rs | 2 +- exercises/intro/intro2.rs | 4 ++-- exercises/variables/variables1.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/intro/intro1.rs b/exercises/intro/intro1.rs index 45c5acba..1f2e8b10 100644 --- a/exercises/intro/intro1.rs +++ b/exercises/intro/intro1.rs @@ -9,7 +9,7 @@ // when you change one of the lines below! Try adding a `println!` line, or try changing // what it outputs in your terminal. Try removing a semicolon and see what happens! -// I AM NOT DONE + fn main() { println!("Hello and"); diff --git a/exercises/intro/intro2.rs b/exercises/intro/intro2.rs index efc1af20..a21c8bb8 100644 --- a/exercises/intro/intro2.rs +++ b/exercises/intro/intro2.rs @@ -2,8 +2,8 @@ // Make the code print a greeting to the world. // Execute `rustlings hint intro2` or use the `hint` watch subcommand for a hint. -// I AM NOT DONE + fn main() { - println!("Hello {}!"); + println!("Hello world!"); } diff --git a/exercises/variables/variables1.rs b/exercises/variables/variables1.rs index f4d182ac..c0849eed 100644 --- a/exercises/variables/variables1.rs +++ b/exercises/variables/variables1.rs @@ -5,6 +5,6 @@ // I AM NOT DONE fn main() { - x = 5; + let x = 5; println!("x has the value {}", x); }