From aac40f6120e704208518104279e6640623114c6d Mon Sep 17 00:00:00 2001 From: Sho Nakatani Date: Fri, 30 Dec 2016 17:53:24 +0900 Subject: [PATCH 1/4] fixes variables1 --- variables/variables1.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables/variables1.rs b/variables/variables1.rs index e0ad5de8..4be88a30 100644 --- a/variables/variables1.rs +++ b/variables/variables1.rs @@ -1,7 +1,7 @@ // Make me compile! Scroll down for hints :) fn main() { - x = 5; + let x = 5; println!("x has the value {}", x); } From c01be98e3470fa199658422900abf92cd4a86828 Mon Sep 17 00:00:00 2001 From: Sho Nakatani Date: Fri, 30 Dec 2016 17:54:13 +0900 Subject: [PATCH 2/4] fixes variables2 --- variables/variables2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables/variables2.rs b/variables/variables2.rs index ca024387..b592da38 100644 --- a/variables/variables2.rs +++ b/variables/variables2.rs @@ -1,7 +1,7 @@ // Make me compile! Scroll down for hints :) fn main() { - let x; + let x = 10; if x == 10 { println!("Ten!"); } else { From 8aab9d9c035bb49d18a03061567aa884eca16970 Mon Sep 17 00:00:00 2001 From: Sho Nakatani Date: Fri, 30 Dec 2016 17:58:15 +0900 Subject: [PATCH 3/4] fixes variables3 --- variables/variables3.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables/variables3.rs b/variables/variables3.rs index ec55a951..0be8cb82 100644 --- a/variables/variables3.rs +++ b/variables/variables3.rs @@ -1,7 +1,7 @@ // Make me compile! Scroll down for hints :) fn main() { - let x = 3; + let mut x = 3; println!("Number {}", x); x = 5; println!("Number {}", x); From d9b254276940b9c5d37dad2ee23026ac2ec2c7b8 Mon Sep 17 00:00:00 2001 From: Sho Nakatani Date: Fri, 30 Dec 2016 17:58:49 +0900 Subject: [PATCH 4/4] fixes variables4 --- variables/variables4.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/variables/variables4.rs b/variables/variables4.rs index 3f7f937d..6334c78c 100644 --- a/variables/variables4.rs +++ b/variables/variables4.rs @@ -1,7 +1,7 @@ // Make me compile! Scroll down for hints :) fn main() { - let x: i32; + let x: i32 = 777; println!("Number {}", x); }