@ -26,7 +26,7 @@ issue](https://github.com/carols10cents/rustlings/issues/new) or submit a pull r
### Variable bindings
### Variable bindings
[Relevant chapter in The Rust Programming
[Relevant chapter in The Rust Programming
Language](https://doc.rust-lang.org/ stable/book/first-edition/variable-bindings .html)
Language](https://doc.rust-lang.org/ book/second-edition/ch03-01-variables-and-mutability .html)
{{ playground_link "variables/variables1.rs" }}
{{ playground_link "variables/variables1.rs" }}
{{ playground_link "variables/variables2.rs" }}
{{ playground_link "variables/variables2.rs" }}
@ -36,7 +36,7 @@ Language](https://doc.rust-lang.org/stable/book/first-edition/variable-bindings.
### Functions
### Functions
[Relevant chapter in The Rust Programming
[Relevant chapter in The Rust Programming
Language](https://doc.rust-lang.org/ stable/book/first-edition/functions .html)
Language](https://doc.rust-lang.org/ book/second-edition/ch03-03-how-functions-work .html)
{{ playground_link "functions/functions1.rs" }}
{{ playground_link "functions/functions1.rs" }}
{{ playground_link "functions/functions2.rs" }}
{{ playground_link "functions/functions2.rs" }}
@ -47,7 +47,7 @@ Language](https://doc.rust-lang.org/stable/book/first-edition/functions.html)
### Primitive types
### Primitive types
[Relevant chapter in The Rust Programming
[Relevant chapter in The Rust Programming
Language](https://doc.rust-lang.org/ stable/book/first-edition/primitive -types.html)
Language](https://doc.rust-lang.org/ book/second-edition/ch03-02-data -types.html)
{{ playground_link "primitive_types/primitive_types1.rs" }}
{{ playground_link "primitive_types/primitive_types1.rs" }}
{{ playground_link "primitive_types/primitive_types2.rs" }}
{{ playground_link "primitive_types/primitive_types2.rs" }}
@ -58,11 +58,11 @@ Language](https://doc.rust-lang.org/stable/book/first-edition/primitive-types.ht
### Tests
### Tests
Going out of order from the Syntax and Semantics section of the book to cover tests-- many of the
Going out of order from the book to cover tests-- many of the following exercises will ask you to
following exercises will ask you to make tests pass!
make tests pass!
[ Testing chapter from the Effective Rust section of the
[ Relevant chapter in The Rust Programming
book](https://doc.rust-lang.org/stable/book/first-edition/testing .html)
Language](https://doc.rust-lang.org/book/second-edition/ch11-01-writing-tests .html)
{{ playground_link "tests/tests1.rs" }}
{{ playground_link "tests/tests1.rs" }}
{{ playground_link "tests/tests2.rs" }}
{{ playground_link "tests/tests2.rs" }}
@ -72,14 +72,14 @@ book](https://doc.rust-lang.org/stable/book/first-edition/testing.html)
### If
### If
[Relevant chapter in The Rust Programming
[Relevant chapter in The Rust Programming
Language](https://doc.rust-lang.org/ stable/book/first-edition/if .html)
Language](https://doc.rust-lang.org/ book/second-edition/ch03-05-control-flow .html)
{{ playground_link "if/if1.rs" }}
{{ playground_link "if/if1.rs" }}
### Strings
### Strings
[Relevant chapter in The Rust Programming
[Relevant chapter in The Rust Programming
Language](https://doc.rust-lang.org/ stable/book/first-edition/ strings.html)
Language](https://doc.rust-lang.org/ book/second-edition/ch08-02- strings.html)
{{ playground_link "strings/strings1.rs" }}
{{ playground_link "strings/strings1.rs" }}
{{ playground_link "strings/strings2.rs" }}
{{ playground_link "strings/strings2.rs" }}
@ -92,9 +92,8 @@ Tutorial](https://pnkfelix.github.io/rust-examples-icfp2014/) -- thank you Felix
Relevant chapters in the book:
Relevant chapters in the book:
- [Ownership](https://doc.rust-lang.org/stable/book/first-edition/ownership.html)
- [Ownership](https://doc.rust-lang.org/book/second-edition/ch04-01-what-is-ownership.html)
- [References and
- [References and borrowing](https://doc.rust-lang.org/book/second-edition/ch04-02-references-and-borrowing.html)
borrowing](https://doc.rust-lang.org/stable/book/first-edition/references-and-borrowing.html)
Note that the exercises in this section may look similar to each other but they are subtly
Note that the exercises in this section may look similar to each other but they are subtly
different :)
different :)
@ -107,15 +106,20 @@ different :)
### Modules
### Modules
[Relevant chapter in The Rust Programming
[Relevant chapter in The Rust Programming
Language](https://doc.rust-lang.org/ stable/book/first-edition/crates-and-modules .html)
Language](https://doc.rust-lang.org/ book/second-edition/ch07-01-mod-and-the-filesystem .html)
{{ playground_link "modules/modules1.rs" }}
{{ playground_link "modules/modules1.rs" }}
{{ playground_link "modules/modules2.rs" }}
{{ playground_link "modules/modules2.rs" }}
### Macros
### Macros
[Check out the Macros section of the
Check out:
book](https://doc.rust-lang.org/book/first-edition/macros.html).
- [The Macros section of the first edition of the book
book](https://doc.rust-lang.org/book/first-edition/macros.html)
- [The Macros appendix of the second edition of the
book](https://doc.rust-lang.org/book/second-edition/appendix-04-macros.html)
- [The Little Book of Rust Macros](https://danielkeep.github.io/tlborm/book/index.html)
{{ playground_link "macros/macros1.rs" }}
{{ playground_link "macros/macros1.rs" }}
{{ playground_link "macros/macros2.rs" }}
{{ playground_link "macros/macros2.rs" }}
@ -124,8 +128,10 @@ book](https://doc.rust-lang.org/book/first-edition/macros.html).
### Error Handling
### Error Handling
The [Error Handling](https://doc.rust-lang.org/stable/book/first-edition/error-handling.html) and
The [Error
[Generics](https://doc.rust-lang.org/stable/book/first-edition/generics.html) sections are relevant.
Handling](https://doc.rust-lang.org/book/second-edition/ch09-02-recoverable-errors-with-result.html)
and [Generics](https://doc.rust-lang.org/book/second-edition/ch10-01-syntax.html) sections are
relevant.
{{ playground_link "error_handling/option1.rs" }}
{{ playground_link "error_handling/option1.rs" }}
{{ playground_link "error_handling/result1.rs" }}
{{ playground_link "error_handling/result1.rs" }}
@ -138,8 +144,8 @@ The [Error Handling](https://doc.rust-lang.org/stable/book/first-edition/error-h
#### `Arc`
#### `Arc`
The [Concurrency](https://doc.rust-lang.org/ stable/book/first-edition/concurrency.html) section is
The [Concurrency](https://doc.rust-lang.org/ book/second-edition/ch16-03-shared-state.html) section
relevant.
is relevant.
{{ playground_link "standard_library_types/arc1.rs" }}
{{ playground_link "standard_library_types/arc1.rs" }}
@ -149,7 +155,7 @@ Do not adjust your monitors-- iterators 1 and 2 are indeed missing. Iterator 3 i
so we're leaving space for some exercises to lead up to it!
so we're leaving space for some exercises to lead up to it!
Check out the [Iterators chapter of the
Check out the [Iterators chapter of the
book](https://doc.rust-lang.org/ stable/book/first-edition/ iterators.html) and the [Iterator
book](https://doc.rust-lang.org/ book/second-edition/ch13-02- iterators.html) and the [Iterator
docs](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html).
docs](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html).
{{ playground_link "standard_library_types/iterator3.rs" }}
{{ playground_link "standard_library_types/iterator3.rs" }}
@ -159,8 +165,8 @@ docs](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.html).
See [the Dining Philosophers
See [the Dining Philosophers
example](https://doc.rust-lang.org/1.4.0/book/first-edition/dining-philosophers.html) and the
example](https://doc.rust-lang.org/1.4.0/book/first-edition/dining-philosophers.html) and the
[Concurrency Chapter](https://doc.rust-lang.org/ stable/book/first-edition/concurrency.html) from
[Concurrency Chapter](https://doc.rust-lang.org/ book/second-edition/ch16-01-threads.html) from the
the book.
book.
{{ playground_link "threads/threads1.rs" }}
{{ playground_link "threads/threads1.rs" }}