@@ -5,7 +5,7 @@ name = "variables1"
5
5
path = " exercises/variables/variables1.rs"
6
6
mode = " compile"
7
7
hint = """
8
- Hint: The declaration on line 5 is missing a keyword that is needed in Rust
8
+ Hint: The declaration on line 12 is missing a keyword that is needed in Rust
9
9
to create a new variable binding."""
10
10
11
11
[[exercises ]]
@@ -15,7 +15,7 @@ mode = "compile"
15
15
hint = """
16
16
The compiler message is saying that Rust cannot infer the type that the
17
17
variable binding `x` has with what is given here.
18
- What happens if you annotate line 5 with a type annotation?
18
+ What happens if you annotate line 7 with a type annotation?
19
19
What if you give x a value?
20
20
What if you do both?
21
21
What type should x be, anyway?
@@ -36,7 +36,7 @@ path = "exercises/variables/variables4.rs"
36
36
mode = " compile"
37
37
hint = """
38
38
Oops! In this exercise, we have a variable binding that we've created on
39
- line 5 , and we're trying to use it on line 6 , but we haven't given it a
39
+ line 7 , and we're trying to use it on line 8 , but we haven't given it a
40
40
value. We can't print out something that isn't there; try giving x a value!
41
41
This is an error that can cause bugs that's very easy to make in any
42
42
programming language -- thankfully the Rust compiler has caught this for us!"""
@@ -365,8 +365,8 @@ name = "move_semantics1"
365
365
path = " exercises/move_semantics/move_semantics1.rs"
366
366
mode = " compile"
367
367
hint = """
368
- So you've got the "cannot borrow immutable local variable `vec1` as mutable" error on line 11 ,
369
- right? The fix for this is going to be adding one keyword, and the addition is NOT on line 11
368
+ So you've got the "cannot borrow immutable local variable `vec1` as mutable" error on line 13 ,
369
+ right? The fix for this is going to be adding one keyword, and the addition is NOT on line 13
370
370
where the error is."""
371
371
372
372
[[exercises ]]
@@ -375,8 +375,8 @@ path = "exercises/move_semantics/move_semantics2.rs"
375
375
mode = " compile"
376
376
hint = """
377
377
So `vec0` is being *moved* into the function `fill_vec` when we call it on
378
- line 7 , which means it gets dropped at the end of `fill_vec`, which means we
379
- can't use `vec0` again on line 10 (or anywhere else in `main` after the
378
+ line 10 , which means it gets dropped at the end of `fill_vec`, which means we
379
+ can't use `vec0` again on line 13 (or anywhere else in `main` after the
380
380
`fill_vec` call for that matter). We could fix this in a few ways, try them
381
381
all!
382
382
1. Make another, separate version of the data that's in `vec0` and pass that
0 commit comments