summaryrefslogtreecommitdiff
path: root/variables
diff options
context:
space:
mode:
authorCarol (Nichols || Goulding) <carol.nichols@gmail.com>2018-03-04 14:26:56 -0500
committerCarol (Nichols || Goulding) <carol.nichols@gmail.com>2018-03-04 14:26:56 -0500
commit956ffa9d7c5203c858db333ff5576244eee076fe (patch)
tree7c8cfa21e13071d12d4c66bf8a3da44b723fe914 /variables
parent426e5cf3f5aa7f65fb13d6884c1bf85e3e195ebd (diff)
Fix line numbers
Fixes #69.
Diffstat (limited to 'variables')
-rw-r--r--variables/variables1.rs2
-rw-r--r--variables/variables2.rs2
-rw-r--r--variables/variables4.rs2
3 files changed, 3 insertions, 3 deletions
diff --git a/variables/variables1.rs b/variables/variables1.rs
index ffd661c..1cdd270 100644
--- a/variables/variables1.rs
+++ b/variables/variables1.rs
@@ -38,5 +38,5 @@ fn main() {
-// Hint: The declaration on line 4 is missing a keyword that is needed in Rust
+// Hint: The declaration on line 5 is missing a keyword that is needed in Rust
// to create a new variable binding.
diff --git a/variables/variables2.rs b/variables/variables2.rs
index 348c2d8..a0b4a37 100644
--- a/variables/variables2.rs
+++ b/variables/variables2.rs
@@ -40,7 +40,7 @@ fn main() {
// The compiler message is saying that Rust cannot infer the type that the
// variable binding `x` has with what is given here.
-// What happens if you annotate line 4 with a type annotation?
+// What happens if you annotate line 5 with a type annotation?
// What if you give x a value?
// What if you do both?
// What type should x be, anyway?
diff --git a/variables/variables4.rs b/variables/variables4.rs
index 20ee64e..71ebf0f 100644
--- a/variables/variables4.rs
+++ b/variables/variables4.rs
@@ -39,7 +39,7 @@ fn main() {
// Oops! In this exercise, we have a variable binding that we've created on
-// line 4, and we're trying to use it on line 5, but we haven't given it a
+// line 5, and we're trying to use it on line 6, but we haven't given it a
// value. We can't print out something that isn't there; try giving x a value!
// This is an error that can cause bugs that's very easy to make in any
// programming language -- thankfully the Rust compiler has caught this for us!