Commit Graph

422 Commits

Author SHA1 Message Date
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
Corey Farwell
9213bbc9d0 Simplify slice examples by using byte literal. 2016-07-29 20:28:11 -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
Carol (Nichols || Goulding)
cf3e963e3f Minor wording/punctuation/spelling changes 2016-07-21 21:51:45 -04:00
Carol (Nichols || Goulding)
c56d76de65 We did see namespaces a bit, in ownership with String::from 2016-07-21 21:50:45 -04:00
Carol (Nichols || Goulding)
507a668cb0 I'm not sure what Pythagoras did to Steve, buuuut
This actually could use a bit of stating in words, imo. And I don't feel
like we need to repeat the function so close to the original code
containing it.
2016-07-21 21:50:12 -04:00
Carol (Nichols || Goulding)
f7103f86b3 Give structs a bit more motivation
they deserve it
2016-07-21 21:01:42 -04:00
Carol (Nichols || Goulding)
ec3939fb73 Removing a statement I don't think is true
tuples?
2016-07-21 20:42:26 -04:00
Carol (Nichols || Goulding)
8730203bff "Long enough" could be ambiguous in this case
We get to use underscores in variable bindings once we have a year's
experience with them or?
2016-07-18 22:27:47 -04:00
Carol (Nichols || Goulding)
1cf14f2baf I'm not sure why compound type inside compound type is relevant here 2016-07-18 22:17:12 -04:00
Carol (Nichols || Goulding)
7710118f4e Change -- to : 2016-07-18 22:15:11 -04:00
Carol (Nichols || Goulding)
6762e758a8 Remove a comment from technical review I forgot to delete 2016-07-18 22:12:14 -04:00