Carol (Nichols || Goulding)
f1a35cd1ec
Outdent code that's been extracted from its context
2016-07-12 15:49:57 -04:00
Carol (Nichols || Goulding)
810775a0c9
Fix now-inaccurate forward and backward references
2016-07-12 15:49:57 -04:00
Carol (Nichols || Goulding)
d92251971d
cargo new
now adds the dependencies header to Cargo.toml
2016-07-12 15:49:57 -04:00
Carol (Nichols || Goulding)
b3f2d287c7
Wording, spelling, whitespace, and punctuation corrections
...
Unrelated to any comment or issue.
2016-07-12 15:49:56 -04:00
Steve Klabnik
1ebfe890b4
Merge pull request #132 from GeertVL/patch-1
...
attach instead of attatch typo
2016-07-11 10:20:30 -04:00
Geert Van Laethem
978eead7e8
attach instead of attatch typo
2016-07-11 13:36:26 +02:00
Jonathan Turner
5c106c9c23
Update ch04-02-ownership.md
2016-07-08 15:58:41 -04:00
Jonathan Turner
aa8e2305c4
Update ch04-02-ownership.md
2016-07-08 15:58:10 -04:00
Jonathan Turner
e83ec9a5c5
Update ch04-02-ownership.md
2016-07-08 15:57:19 -04:00
Carol (Nichols || Goulding)
e16d3b4f66
Proposed reordering (without Up and Running chapter for now
2016-07-08 15:49:47 -04:00
Carol (Nichols || Goulding)
3dcca0b139
Merge remote-tracking branch 'origin/ch2' into first-third-try
2016-07-08 15:45:58 -04:00
Carol (Nichols || Goulding)
99aba46d24
Merge remote-tracking branch 'origin/ch6' into first-third-try
2016-07-08 15:45:54 -04:00
Carol (Nichols || Goulding)
4801fe6aa5
Pull the guessing game tutorial over from the existing book
2016-07-08 10:41:21 -04:00
Carol (Nichols || Goulding)
cda62ba0ef
First rule about block comments: don't talk about block comments
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
4efe6824d8
Put back the trailing whitespace to get newlines
...
Bad text editor. Not helpful. No.
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
48d3255920
Fix alignment of the first line in the table
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
1f5b8c74ca
Remove extra newline
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
63523d45b5
Remove unneeded indent
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
8c6919d67a
Address comments in control flow
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
690a972438
Resolve comments in... comments
...
I added a bit about the other style of comments being possible since
it's preferred for accessibility reasons:
https://github.com/rust-lang/rfcs/pull/1574#discussion_r59236286
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
5283f07479
Resolve comments in functions
...
Fix some parts that didn't make sense anymore since I moved data
structures before this section-- tuples and destructuring have already
been defined.
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
ea17980f28
Resolve comments in data types
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
ef9741ac16
Resolve comments and make some more edits in variable bindings
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
fdd28f7e66
Resolve comments in Anatomy of a Rust Program
2016-07-05 19:18:05 -04:00
Carol (Nichols || Goulding)
ff08e0608d
Backport changes to control flow
2016-07-05 19:18:04 -04:00
Carol (Nichols || Goulding)
6086b96384
Backport changes to comments section
2016-07-05 19:18:04 -04:00
Carol (Nichols || Goulding)
3b6c3090a6
Backport changes to functions section
2016-07-05 19:18:04 -04:00
Carol (Nichols || Goulding)
7ad59a1a9e
Backport changes to scalar/compound data types sections
2016-07-05 19:18:04 -04:00
Carol (Nichols || Goulding)
8bf85b6a58
Backport changes to Variable Bindings in Detail section
2016-07-05 19:18:04 -04:00
Carol (Nichols || Goulding)
e094c3bd4e
Backport addition of Anatomy of a Rust Program section
2016-07-05 19:18:02 -04:00
Carol (Nichols || Goulding)
b5064f0ce7
Backport edits made to Up and Running section
2016-07-05 19:17:38 -04:00
Carol (Nichols || Goulding)
9f3d17f8d5
Remove redundant "Chapter X" from sidebar
...
Fixes #124 .
2016-07-05 15:00:58 -04:00
Carol (Nichols || Goulding)
ab0e9ab406
Merge pull request #119 from JIghtuse/master
...
chapter3: Fix multiple-argument functions signatures
2016-07-05 11:23:48 -04:00
Carol (Nichols || Goulding)
86e35395ec
Fix another rename I messed up
2016-07-03 14:37:06 -04:00
Carol (Nichols || Goulding)
7ac400d560
Rework the match example to be about coin sorting
...
Fixes #115 .
Thanks to some brainstorming with @pindell-matt and @selfup at Turing,
we've got what I think is a better analogy of a coin sorting machine!
2016-07-01 20:57:30 -06:00
Carol (Nichols || Goulding)
2590356475
Clear up the last sentence of the if let section a bit
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
622b4ac83f
Clarify talking about println! in prose
...
- Make code
- Avoid expression/statement confusion by not saying either of those
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
957eb7e517
Show the variable declaration in this example
...
I think the variable declaration makes this clearer, in case the reader
wants to copy-paste and play with it.
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
30604a5fe8
Connect exhaustiveness checking to $1B mistake
...
Connects to #112 . Thanks @aturon!
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
f42b92d769
Clarify some points about the code in match arms
...
- Change the example to have an arm with multiple lines
- Explain the deal with multiple lines
- Emphasize that these are expressions
Connects to #112 . Thank you @aturon!
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
5effbd5a93
Skip match exhaustiveness not being perfect
...
Connects to #112 . Thank you @aturon!
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
df9adca27d
Add a paragraph connecting Option to the $1B mistake
...
Fixes #111 . Thank you @aturon!
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
b59a62e0e6
Compare enum syntax to struct syntax
...
Closes #106 . Thank you @aturon!
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
b1d3ceb269
Be less dogmatic about idiomatic
...
Connects to #106 .
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
c7979df8b2
Give more enum motivation in the intro paragraph
...
Taking suggestions from @aturon. I like how this foreshadows why this
chapter has sections on patterns.
Connects to #106 .
2016-07-01 18:56:46 -06:00
Carol (Nichols || Goulding)
b113cc9014
Simplify and clarify match guards
...
I feel like the precedence issues are a bit too nuanced and not worth
spending time on. Match guards can be useful, though.
Fixes #115 at this point, in my view.
2016-07-01 18:56:45 -06:00
Carol (Nichols || Goulding)
9e292dfa6d
Clarify and simplify using _ to ignore parts of bindings
...
I feel like destructuring tuples and struct fields is less common. I do
think it's worth pointing out that _ doesn't bind, though.
Connects to #115 .
2016-07-01 18:56:45 -06:00
Carol (Nichols || Goulding)
1051a43504
Clarify the code examples in the ref/ref mut patterns section
...
Connects to #115 .
2016-07-01 18:56:45 -06:00
Carol (Nichols || Goulding)
418c62e034
Give multiple patterns and ranges more motivation and move them together
...
I feel like these are useful for the same reasons, are very similar, and
should therefore be discussed in quick succession.
Connects to #115 .
2016-07-01 18:56:45 -06:00
Carol (Nichols || Goulding)
97c870f7bb
Give the patterns section a better ending
...
That leads into the next section like the other sections do.
Closes #114 .
2016-07-01 18:56:45 -06:00