Skip to content

Commit b565c4d

Browse files
committed
fix: line numbers in several exercises and hints
The introduction of `I AM NOT DONE` shifted the lines of all exercises, which now need adjustment.
1 parent e9a835c commit b565c4d

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

exercises/move_semantics/move_semantics2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// move_semantics2.rs
2-
// Make me compile without changing line 10!
2+
// Make me compile without changing line 13!
33
// Execute `rustlings hint move_semantics2` for hints :)
44

55
// I AM NOT DONE

exercises/threads/threads1.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// threads1.rs
22
// Make this compile! Execute `rustlings hint threads1` for hints :)
3-
// The idea is the thread spawned on line 19 is completing jobs while the main thread is
3+
// The idea is the thread spawned on line 21 is completing jobs while the main thread is
44
// monitoring progress until 10 jobs are completed. If you see 6 lines
55
// of "waiting..." and the program ends without timing out when running,
66
// you've got it :)

info.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name = "variables1"
55
path = "exercises/variables/variables1.rs"
66
mode = "compile"
77
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
99
to create a new variable binding."""
1010

1111
[[exercises]]
@@ -15,7 +15,7 @@ mode = "compile"
1515
hint = """
1616
The compiler message is saying that Rust cannot infer the type that the
1717
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?
1919
What if you give x a value?
2020
What if you do both?
2121
What type should x be, anyway?
@@ -36,7 +36,7 @@ path = "exercises/variables/variables4.rs"
3636
mode = "compile"
3737
hint = """
3838
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
4040
value. We can't print out something that isn't there; try giving x a value!
4141
This is an error that can cause bugs that's very easy to make in any
4242
programming language -- thankfully the Rust compiler has caught this for us!"""
@@ -365,8 +365,8 @@ name = "move_semantics1"
365365
path = "exercises/move_semantics/move_semantics1.rs"
366366
mode = "compile"
367367
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
370370
where the error is."""
371371

372372
[[exercises]]
@@ -375,8 +375,8 @@ path = "exercises/move_semantics/move_semantics2.rs"
375375
mode = "compile"
376376
hint = """
377377
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
380380
`fill_vec` call for that matter). We could fix this in a few ways, try them
381381
all!
382382
1. Make another, separate version of the data that's in `vec0` and pass that

0 commit comments

Comments
 (0)