From 4e990d5f527236f3e51b1c85ab76ff195745a783 Mon Sep 17 00:00:00 2001 From: "stephan.klauberg" Date: Sat, 16 Sep 2023 07:24:01 +0200 Subject: [PATCH] import --- exercises/intro/intro1.rs | 2 +- exercises/intro/intro2.rs | 5 +++-- exercises/variables/variables1.rs | 4 ++-- myrustlings_watch.cmd | 3 +++ 4 files changed, 9 insertions(+), 5 deletions(-) create mode 100644 myrustlings_watch.cmd diff --git a/exercises/intro/intro1.rs b/exercises/intro/intro1.rs index 37fa0112..b15a6ca9 100644 --- a/exercises/intro/intro1.rs +++ b/exercises/intro/intro1.rs @@ -13,7 +13,7 @@ // Execute `rustlings hint intro1` or use the `hint` watch subcommand for a // hint. -// 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 990b20f0..5886606b 100644 --- a/exercises/intro/intro2.rs +++ b/exercises/intro/intro2.rs @@ -5,8 +5,9 @@ // 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 my_greeting="World"; + println!("Hello {my_greeting}!"); } diff --git a/exercises/variables/variables1.rs b/exercises/variables/variables1.rs index b3e089a5..ba90630f 100644 --- a/exercises/variables/variables1.rs +++ b/exercises/variables/variables1.rs @@ -5,9 +5,9 @@ // Execute `rustlings hint variables1` or use the `hint` watch subcommand for a // hint. -// I AM NOT DONE +// I AM DONE fn main() { - x = 5; + let x = 5; println!("x has the value {}", x); } diff --git a/myrustlings_watch.cmd b/myrustlings_watch.cmd new file mode 100644 index 00000000..037e6a4f --- /dev/null +++ b/myrustlings_watch.cmd @@ -0,0 +1,3 @@ +cargo build +::target\release\rustlings.exe watch +target\debug\rustlings.exe watch \ No newline at end of file