From 85a3199159f21bbc749c1488a93e80e2b64b1a6f Mon Sep 17 00:00:00 2001 From: Pablo Maza Martin Date: Thu, 27 Apr 2023 00:25:54 +0200 Subject: [PATCH] solved intro rustlings exercises --- exercises/intro/intro1.rs | 2 +- exercises/intro/intro2.rs | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/exercises/intro/intro1.rs b/exercises/intro/intro1.rs index cfc55c30..3e995984 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 +// I AM DONE fn main() { println!("Hello and"); diff --git a/exercises/intro/intro2.rs b/exercises/intro/intro2.rs index efc1af20..4d7279c8 100644 --- a/exercises/intro/intro2.rs +++ b/exercises/intro/intro2.rs @@ -2,8 +2,9 @@ // 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 +// I AM DONE fn main() { - println!("Hello {}!"); + let hello_world:String= "World".to_string(); + println!("Hello {}!",hello_world); }