Skip to content

Commit a49a220

Browse files
author
liv
committed
redo the section readmes
1 parent dc1f3b7 commit a49a220

File tree

10 files changed

+68
-14
lines changed

10 files changed

+68
-14
lines changed

exercises/functions/REAMDE.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
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+
### Functions
2+
3+
Here, you'll learn how to write functions and how Rust's compiler can trace things way back.
4+
5+
#### Book Sections
6+
7+
- [How Functions Work](https://doc.rust-lang.org/stable/book/ch03-03-how-functions-work.html)

exercises/if/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### If
2+
3+
`if`, the most basic type of control flow, is what you'll learn here.
4+
5+
#### Book Sections
6+
7+
- [Control Flow - if expressions](https://doc.rust-lang.org/stable/book/ch03-05-control-flow.html#if-expressions)

exercises/if/REAMDE.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

exercises/macros/README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
For this exercise check out the section [Macros](https://doc.rust-lang.org/book/2018-edition/macros.html) and the chapter
2-
[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+
### Macros
2+
3+
Rust's macro system is very powerful, but also kind of difficult to wrap your
4+
head around. We're not going to teach you how to write your own fully-featured
5+
modules, instead we'll show you how to use and create them.
6+
7+
#### Book Sections
8+
9+
- [Macros](https://doc.rust-lang.org/stable/book/ch19-06-macros.html)
10+
- [The Little Book of Rust Macros](https://danielkeep.github.io/tlborm/book/index.html)

exercises/modules/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
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.
1+
### Modules
2+
3+
In this section we'll give you an introduction to Rust's module system.
4+
5+
#### Book Sections
6+
7+
- [The Module System](https://doc.rust-lang.org/stable/book/ch07-02-modules-and-use-to-control-scope-and-privacy.html)

exercises/move_semantics/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
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!!!
1+
### Move Semantics
22

3-
For this exercise check out the chapters:
4-
- [Ownership](https://doc.rust-lang.org/book/2018-edition/ch04-01-what-is-ownership.html)
5-
- [Reference and borrowing](https://doc.rust-lang.org/book/2018-edition/ch04-02-references-and-borrowing.html)
3+
These exercises are adapted from [pnkfelix](https://github.com/pnkfelix)'s [Rust Tutorial](https://pnkfelix.github.io/rust-examples-icfp2014/) -- Thank you Felix!!!
64

7-
of the Rust Book.
5+
#### Book Sections
6+
7+
For this section, the book links are especially important.
8+
9+
- [Ownership](https://doc.rust-lang.org/stable/book/ch04-01-what-is-ownership.html)
10+
- [Reference and borrowing](https://doc.rust-lang.org/stable/book/ch04-02-references-and-borrowing.html)

exercises/primitive_types/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
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.
1+
### Primitive Types
2+
3+
Rust has a couple of basic types that are directly implemented into the
4+
compiler. In this section, we'll go through the most important ones.
5+
6+
#### Book Sections
7+
8+
- [Data Types](https://doc.rust-lang.org/stable/book/ch03-02-data-types.html)

exercises/strings/REAMDE.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,9 @@
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.
1+
### Strings
2+
3+
Rust has two string types, a string slice (`&str`) and an owned string (`String`).
4+
We're not going to dictate when you should use which one, but we'll show you how
5+
to identify and create them, as well as use them.
6+
7+
#### Book Sections
8+
9+
- [Strings](https://doc.rust-lang.org/stable/book/ch08-02-strings.html)

exercises/tests/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
### Tests
2+
13
Going out of order from the book to cover tests -- many of the following exercises will ask you to make tests pass!
24

3-
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.
5+
#### Book Sections
6+
7+
- [Writing Tests](https://doc.rust-lang.org/stable/book/ch11-01-writing-tests.html)

exercises/variables/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
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.
1+
### Variables
2+
3+
Here you'll learn about simple variables.
4+
5+
#### Book Sections
6+
7+
- [Variables and Mutability](https://doc.rust-lang.org/stable/book/ch03-01-variables-and-mutability.html)

0 commit comments

Comments
 (0)