diff options
| author | mokou <mokou@fastmail.com> | 2022-07-11 13:43:41 +0200 |
|---|---|---|
| committer | mokou <mokou@fastmail.com> | 2022-07-11 13:43:41 +0200 |
| commit | 81edc4234fbe40eee34f83bbc2995c69f9e1e07c (patch) | |
| tree | 8fc2a46b1c2ad65ac293da9e0f3577b2e9a4a952 /info.toml | |
| parent | c3c21ad91fd66bcffedb85f542c1c830e1a7cdc0 (diff) | |
fix(variables): reorder and redo hint texts
Diffstat (limited to 'info.toml')
| -rw-r--r-- | info.toml | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -43,20 +43,20 @@ name = "variables3" path = "exercises/variables/variables3.rs" mode = "compile" hint = """ -In Rust, variable bindings are immutable by default. But here we're trying -to reassign a different value to x! There's a keyword we can use to make -a variable binding mutable instead.""" +Oops! In this exercise, we have a variable binding that we've created on +line 7, and we're trying to use it on line 8, 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!""" [[exercises]] name = "variables4" path = "exercises/variables/variables4.rs" mode = "compile" hint = """ -Oops! In this exercise, we have a variable binding that we've created on -line 7, and we're trying to use it on line 8, 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!""" +In Rust, variable bindings are immutable by default. But here we're trying +to reassign a different value to x! There's a keyword we can use to make +a variable binding mutable instead.""" [[exercises]] name = "variables5" |
