1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2024-12-04 10:35:06 +02:00

chore: update variables5.rs book link (#351)

chore: update variables5.rs book link

chore: update variables5.rs book link
This commit is contained in:
Saurav 2020-04-12 23:05:20 +05:30 committed by GitHub
parent cfb98a5617
commit abd0ec379c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

2
Cargo.lock generated
View File

@ -592,7 +592,7 @@ dependencies = [
[[package]]
name = "rustlings"
version = "2.2.1"
version = "3.0.0"
dependencies = [
"assert_cmd 0.11.1 (registry+https://github.com/rust-lang/crates.io-index)",
"clap 2.33.0 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -52,7 +52,8 @@ because we want to assign a different typed value to an existing variable. Somet
you may also like to reuse existing variable names because you are just converting
values to different types like in this exercise.
Fortunately Rust has a powerful solution to this problem: 'Shadowing'!
You can read more about 'Shadowing' in the book's section 'Variables and Mutability'.
You can read more about 'Shadowing' in the book's section 'Variables and Mutability':
https://doc.rust-lang.org/book/ch03-01-variables-and-mutability.html#shadowing
Try to solve this exercise afterwards using this technique."""
# IF