Commit Graph

331 Commits

Author SHA1 Message Date
Carol (Nichols || Goulding)
f2d21dcbd1 Merge remote-tracking branch 'origin/master' into first-third-try 2016-07-30 17:31:05 -04:00
Carol (Nichols || Goulding)
37101e5224 Swap the order of common programming concepts & ownership again
😂😂😂
2016-07-30 17:27:26 -04:00
Carol (Nichols || Goulding)
eb6d860033 Condense the if explanation
It's a little bit *too* detailed, for people coming from other
languages.
2016-07-30 17:16:39 -04:00
Carol (Nichols || Goulding)
287b147268 Sorry steve, bobby frost is going 2016-07-30 17:03:40 -04:00
Carol (Nichols || Goulding)
8104951921 Talk about for more than loop and while
Since that's the most common loop in Rust and has some benefits, let's
encourage it.
2016-07-30 16:58:39 -04:00
Carol Nichols
b5448577e5 Merge pull request #162 from frewsxcv/patch-2
Don't use UFCS before it gets introduced.
2016-07-30 16:40:38 -04:00
Carol Nichols
830db27213 Merge pull request #163 from frewsxcv/patch-3
Indicate system variable is code-like.
2016-07-30 16:39:42 -04:00
Steve Klabnik
0b907e0241 Merge pull request #168 from rust-lang/doc-comments
Move doc comments into a future section about creating a library
2016-07-30 16:33:51 -04:00
Carol (Nichols || Goulding)
287d9b175b Remove doc comments to go in a future section about library docs 2016-07-30 16:20:14 -04:00
Carol (Nichols || Goulding)
b5ebd97046 Move doc comments into a future section about creating a library 2016-07-30 16:13:51 -04:00
Carol (Nichols || Goulding)
ad88878ecf Discuss multiple return values in ownership instead
It's actually cooler to show a bit of motivation for it, imo.
2016-07-30 16:08:26 -04:00
Carol (Nichols || Goulding)
75b8ea124e Shorten type annotation explanation in data types 2016-07-30 15:47:36 -04:00
Carol (Nichols || Goulding)
7b37a5b4ac Remove bindings as arguments from functions
Since we're assuming the reader has programmed in at least one language
before, this will likely make sense to them.
2016-07-30 14:59:08 -04:00
Carol (Nichols || Goulding)
eb11d2b916 Condense array discussion; mention Vec is preferred 2016-07-30 14:56:51 -04:00
Carol (Nichols || Goulding)
2863436054 Move Debug explanation from arrays to structs 2016-07-30 14:49:15 -04:00
Steve Klabnik
1e7e0e61c4 Merge pull request #167 from rust-lang/patterns-up
Move Patterns to be its own top-level chapter
2016-07-30 14:38:50 -04:00
Carol (Nichols || Goulding)
ed5a22ea24 Remove Patterns subsection; to become a top-level later chapter
See https://github.com/rust-lang/book/pull/167
2016-07-30 14:32:45 -04:00
Carol (Nichols || Goulding)
fb56f123f3 Move Patterns to be its own top-level chapter 2016-07-30 14:27:23 -04:00
Carol (Nichols || Goulding)
2e18fde173 Explain why mutability is important, when to use. Flow into shadowing 2016-07-30 14:04:31 -04:00
Corey Farwell
4867721c8c Indicate system variable is code-like. 2016-07-29 23:11:30 -04:00
Corey Farwell
da86f50ab8 Don't use UFCS before it gets introduced.
It's not introduced until later in this page.
2016-07-29 22:53:54 -04:00
Carol (Nichols || Goulding)
86c9daef41 Change variable bindings section to mostly be about mutability
Leave a bit about shadowing and how it relates to mutability.

Change the error explanation box to be about the mutability error.

I have some placeholders in here that I will resolve tomorrow.
2016-07-29 21:39:27 -04:00
Carol (Nichols || Goulding)
f915f9af4b Chapter 1 can have the "Anatomy of a Rust Program" title back 2016-07-29 20:17:42 -04:00
Carol (Nichols || Goulding)
08154ad6bc Remove anatomy of a rust program section that's duplicated elsewhere
Except the crab pincers. Move those to the first discussion of
println!() :)
2016-07-29 20:16:27 -04:00
Carol (Nichols || Goulding)
4b7a42814f Move bit about keywords to the intro part of this chapter 2016-07-29 20:03:54 -04:00
Carol Nichols
ae14cc407c Merge pull request #157 from jonathandturner/first-third-try
Split up example for better readability
2016-07-29 20:00:33 -04:00
Jonathan Turner
4e73350c08 Split up example for better readability 2016-07-29 10:43:26 -07:00
Carol Nichols
8ee39b9583 Merge pull request #156 from jonathandturner/first-third-try
Update errors in references chapter
2016-07-29 08:53:03 -04:00
Carol (Nichols || Goulding)
17429f2322 Ruby -> Python 2016-07-29 08:51:52 -04:00
Carol (Nichols || Goulding)
2cb1773fab Safety, speed, concurrency. Don't repeat speed so soon 2016-07-29 08:51:26 -04:00
Carol (Nichols || Goulding)
8e2ae1cfa6 Remove motivation for hello world and "expression based"
Fixes #152.
2016-07-28 21:28:17 -04:00
Carol (Nichols || Goulding)
0e7e64a495 Small wording, punctuation, etc edits to hello world 2016-07-28 21:27:53 -04:00
Carol (Nichols || Goulding)
f96b0b0ed1 Change output highlighting from text to bash 2016-07-28 21:27:12 -04:00
Carol (Nichols || Goulding)
bb0ac803e7 Inspired by hello world, clarify $ further
Too much?
2016-07-28 21:26:35 -04:00
Carol (Nichols || Goulding)
71a91c4db4 Show an example of rustc --version output, with placeholders
Fixes #151.
2016-07-28 20:53:21 -04:00
Carol (Nichols || Goulding)
8af84e7514 Replace rustup.sh with rustup.rs 2016-07-28 20:53:16 -04:00
Carol (Nichols || Goulding)
dd8d776614 Small wording, punctuation, and wrapping edits to installation 2016-07-28 20:52:31 -04:00
Carol (Nichols || Goulding)
ec255d22f3 Address comments about the installation section
Fixes #150.
2016-07-28 20:52:09 -04:00
Carol (Nichols || Goulding)
36d022f729 Rewrite the intro to be friendlier and more welcoming
Fixes #149.
2016-07-28 20:11:51 -04:00
Jonathan Turner
dfc49051bd Update errors in references chapter 2016-07-28 15:48:06 -07:00
Carol (Nichols || Goulding)
89db16724e Merge remote-tracking branch 'origin/master' into first-third-try 2016-07-28 16:00:17 -04:00
Carol (Nichols || Goulding)
eb82716d3c Remove some more "in Rust" from titles 2016-07-28 15:55:53 -04:00
Carol (Nichols || Goulding)
bd6539e2b2 Remove a spurious space 2016-07-28 15:55:53 -04:00
Carol Nichols
9e1cb945de Merge pull request #148 from Zajn/zajn/fix-typos
Fix typos/grammar and markdown link syntax
2016-07-28 15:55:12 -04:00
Carol Nichols
5a4657dbc0 Merge pull request #144 from GuillaumeGomez/patch-1
Update ch06-04-if-let.md
2016-07-28 15:29:10 -04:00
Zachary T Jones
0adad8df42 Update link to structs chapter 2016-07-28 13:08:42 -04:00
Zachary T Jones
09909d27d6 Fix typos/grammar and markdown link syntax 2016-07-27 20:29:17 -04:00
Guillaume Gomez
582a73b19b Update ch06-04-if-let.md
I read it more easily this way
2016-07-27 22:22:38 +02:00
Carol (Nichols || Goulding)
ca7a5f39d6 Change discussion of derive/annotations/traits to match reorg 2016-07-21 21:53:08 -04:00
Carol (Nichols || Goulding)
afbbb0de4a Cut discussion of unit structs
es-o-ter-ic 👏👏, 👏👏👏
2016-07-21 21:52:15 -04:00