mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 15:56:28 +00:00
Merge branch 'new' into new-readme-more-explicit
This commit is contained in:
commit
c37ba3e697
13 changed files with 31 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
# rustlings
|
# rustlings
|
||||||
|
|
||||||
Greetings and welcome to rustlings. This project contains small exercises get you used to reading and writing code. This includes reading and responding to compiler messages!
|
Greetings and welcome to rustlings. This project contains small exercises to get you used to reading and writing code. This includes reading and responding to compiler messages!
|
||||||
|
|
||||||
## How to get started
|
## How to get started
|
||||||
|
|
||||||
|
@ -30,7 +30,7 @@ If you choose to not install rustlings, just replace `rustlings` with `cargo run
|
||||||
|
|
||||||
## Doing exercises
|
## Doing exercises
|
||||||
|
|
||||||
The execises are sorted by topic and can be found in the subdirectory `rustlings/exercises/<topic>`.
|
The exercises are sorted by topic and can be found in the subdirectory `rustlings/exercises/<topic>`. For every topic there is an additional README file with some resources to get you started on the topic. We really recommend, that you have a look at them before you start.
|
||||||
|
|
||||||
For every topic there is an additional README file with some resources to get you started on the topic. We really recommend, that you have a look at them before you start.
|
For every topic there is an additional README file with some resources to get you started on the topic. We really recommend, that you have a look at them before you start.
|
||||||
|
|
||||||
|
|
5
exercises/error_handling/README.md
Normal file
5
exercises/error_handling/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
For this exercise check out the sections:
|
||||||
|
- [Error Handling](https://doc.rust-lang.org/book/2018-edition/ch09-02-recoverable-errors-with-result.html)
|
||||||
|
- [Generics](https://doc.rust-lang.org/book/2018-edition/ch10-01-syntax.html)
|
||||||
|
|
||||||
|
of the Rust Book.
|
1
exercises/functions/REAMDE.md
Normal file
1
exercises/functions/REAMDE.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
For this exercise check out the chapter [Functions](https://doc.rust-lang.org/book/2018-edition/ch03-03-how-functions-work.html) of the Rust Book.
|
1
exercises/if/REAMDE.md
Normal file
1
exercises/if/REAMDE.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
For this exercise check out the chapter [If](https://doc.rust-lang.org/book/2018-edition/ch03-05-control-flow.html?highlight=control,fl#control-flow) of the Rust Book.
|
2
exercises/macros/README.md
Normal file
2
exercises/macros/README.md
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
For this exercise check out the section [Macros](https://doc.rust-lang.org/book/2018-edition/macros.html) and the chapter
|
||||||
|
[Macros Appendix](https://doc.rust-lang.org/book/2018-edition/appendix-04-macros.html) of the Rust Book and [The Little Book of Rust Macros](https://danielkeep.github.io/tlborm/book/index.html).
|
1
exercises/modules/README.md
Normal file
1
exercises/modules/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
For this exercise check out the [Modules](https://doc.rust-lang.org/book/2018-edition/ch07-01-mod-and-the-filesystem.html) chapter of the Rust Book.
|
7
exercises/move_semantics/README.md
Normal file
7
exercises/move_semantics/README.md
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
These exercises are adapted from [pnkfelix](https://github.com/rustlings/rustlings/blob/master)'s [Rust Tutorial](https://pnkfelix.github.io/rust-examples-icfp2014/) -- Thank you Felix!!!
|
||||||
|
|
||||||
|
For this exercise check out the chapters:
|
||||||
|
- [Ownership](https://doc.rust-lang.org/book/2018-edition/ch04-01-what-is-ownership.html)
|
||||||
|
- [Reference and borrowing](https://doc.rust-lang.org/book/2018-edition/ch04-02-references-and-borrowing.html)
|
||||||
|
|
||||||
|
of the Rust Book.
|
1
exercises/primitive_types/README.md
Normal file
1
exercises/primitive_types/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
For this exercise check out the chapter [Data Types](https://doc.rust-lang.org/book/2018-edition/ch03-02-data-types.html) of the Rust Book.
|
5
exercises/standard_library_types/README.md
Normal file
5
exercises/standard_library_types/README.md
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
For the Arc exercise check out the chapter [Shared-State Concurrency](https://doc.rust-lang.org/book/2018-edition/ch16-03-shared-state.html) of the Rust Book.
|
||||||
|
|
||||||
|
For the Iterator exercise check out the chapters [Iterator](https://doc.rust-lang.org/book/2018-edition/ch13-02-iterators.html) of the Rust Book and the [Iterator documentation](https://doc.rust-lang.org/stable/std/iter/trait.Iterator.htmlj).
|
||||||
|
Do not adjust your monitors-- iterators 1 and 2 are indeed missing. Iterator 3 is a bit challenging so we're leaving space for some exercises to lead up to it!
|
||||||
|
|
1
exercises/strings/REAMDE.md
Normal file
1
exercises/strings/REAMDE.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
For this exercise check out the chapter [Strings](https://doc.rust-lang.org/book/2018-edition/ch08-02-strings.html) of the Rust Book.
|
3
exercises/tests/README.md
Normal file
3
exercises/tests/README.md
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Going out of order from the book to cover tests -- many of the following exercises will ask you to make tests pass!
|
||||||
|
|
||||||
|
For this exercise check out the section [How to Write Tests](https://doc.rust-lang.org/book/2018-edition/ch11-01-writing-tests.html) of the Rust Book.
|
1
exercises/threads/README.md
Normal file
1
exercises/threads/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
For this exercise check out the [Dining Philosophers example](https://doc.rust-lang.org/1.4.0/book/dining-philosophers.html) and the chapter [Concurrency](https://doc.rust-lang.org/book/2018-edition/ch16-01-threads.html) of the Rust Book.
|
1
exercises/variables/README.md
Normal file
1
exercises/variables/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
For this exercise checkout the section [Variables and Mutability](https://doc.rust-lang.org/book/2018-edition/ch03-01-variables-and-mutability.html) of the Rust Book.
|
Loading…
Reference in a new issue