Commit Graph
1192 Commits
Author SHA1 Message Date
Jian Weihang 9f55bd4bc6 replace extern create rand with use rand
reasons:

- `extern crate` is almost never needed since Rust 2018.
- `extern crate` is neither mentioned nor explained between ch01~ch14, makes beginners confused..
2019-02-10 15:46:54 +08:00
Carol (Nichols || Goulding) f643a97b9b Merge pull request #1791 from rust-lang/after-copyedit
Edits from copyediting
2019-01-30 14:58:19 -05:00
Carol (Nichols || Goulding) b653ad52b7 Merge pull request #1792 from phansch/update_clippy_urls
Clippy updates
2019-01-30 14:44:38 -05:00
Carol (Nichols || Goulding) 566c4b32fc Merge pull request #1789 from rust-lang/ch7-edits
Ch7 edits
2019-01-30 14:43:05 -05:00
Philipp Hansch 49e02f43b4 Update Clippy URLs 2019-01-30 08:17:33 +01:00
RobbieClarken c2417dcee3 Correct references to listing 19-36 2019-01-29 21:30:55 -05:00
Carol (Nichols || Goulding) 014310de6e Merge pull request #1769 from ralvessa/code-indentation
Unnecessary code indentation
2019-01-29 21:24:52 -05:00
Carol (Nichols || Goulding) 8d90d2c82e Merge pull request #1768 from fintelia/patch-1
io::stdin is not an associated function
2019-01-29 21:24:26 -05:00
Carol (Nichols || Goulding) d133089fba Merge pull request #1767 from supbear/grammar-fix
Change "different than" to "different from"
2019-01-29 21:23:42 -05:00
Carol (Nichols || Goulding) fabeffa72c Merge pull request #1758 from ralvessa/remove-setting-repetition
Remove repetition of word "setting"
2019-01-29 21:13:05 -05:00
Carol (Nichols || Goulding) a58b0028f0 Merge pull request #1753 from rust-lang/gh1648
tweak comment about static lifetime
2019-01-29 21:06:31 -05:00
Carol (Nichols || Goulding) 5b07203988 Merge pull request #1751 from rust-lang/gh1748
add a missing dyn
2019-01-29 20:54:09 -05:00
Carol (Nichols || Goulding) 770ffcabcb moar spellingz 2019-01-29 20:43:36 -05:00
Carol (Nichols || Goulding) 89fa1b40ba Reverting a change that has something to do with colloquial terms of art or something 2019-01-29 20:39:33 -05:00
Carol (Nichols || Goulding) 1c3382ac8c Clarify crate root 2019-01-29 20:32:42 -05:00
Carol (Nichols || Goulding) 08d947ef6c Punctuation inside quotes in prose will be the death of me 2019-01-29 20:23:50 -05:00
Carol (Nichols || Goulding) 3a20127263 crates -> packages 2019-01-29 20:22:46 -05:00
Carol (Nichols || Goulding) 50b54b7148 Propagate changes from nostarch to src 2019-01-29 20:19:06 -05:00
Carol (Nichols || Goulding) 9d0514e33c Merge remote-tracking branch 'origin/master' into ch7-edits 2019-01-28 21:51:53 -05:00
Carol (Nichols || Goulding) c8309d6b52 Merge pull request #1745 from anoadragon453/master
Lowercase 'into' in title
2019-01-28 21:42:37 -05:00
Carol (Nichols || Goulding) 2a736003e6 Rework chapter 7 after feedback from nostarch
Also (hopefully) fixes #1760.
2019-01-28 21:22:14 -05:00
Carol (Nichols || Goulding) 0e9061cbaf Fix broken links 2019-01-15 20:31:14 -05:00
Rafael Alves Sa 10a5d18f22 Remove unnecessary indentation 2019-01-15 22:33:53 +00:00
Jonathan Behrens 41adcc991e io::stdin is not an associated function 2019-01-14 22:40:13 -05:00
supbear f617d58c1a Change "different than" to "different from"
Change "different than" and similar phrases to use "from" instead.
2019-01-14 06:33:17 +02:00
Rafael Alves Sa 27977f5d31 Remove repetition of word "setting" 2019-01-09 21:25:04 +00:00
Steve Klabnik beeed19778 tweak comment about static lifetime
Fixes #1648
2019-01-07 14:49:15 -05:00
Steve Klabnik 468e7c7bde add a missing dyn
Fixes #1748
2019-01-07 14:11:06 -05:00
Andrew Morgan 45309896a8 Into -> into in title 2019-01-05 15:37:03 +00:00
Carol (Nichols || Goulding) 42b802f261 Merge pull request #1736 from stomar/improve-lang
Small language improvement in ch11-02
2019-01-03 21:51:58 -05:00
Carol (Nichols || Goulding) a73ca2e586 Merge pull request #1735 from stomar/fix-test-failure-msg
Fix test failure messages in ch11-01
2019-01-03 21:51:23 -05:00
Carol (Nichols || Goulding) 730d444bc0 Update more screenshots 2019-01-03 21:39:47 -05:00
Carol (Nichols || Goulding) 78ad9a5ab4 Update doc comment and screenshot to not have an unused variable
Fixes #1732.
2019-01-03 21:23:56 -05:00
Carol (Nichols || Goulding) c0a20d4538 Edits and extractions for nostarch 2019-01-03 21:12:29 -05:00
Carol (Nichols || Goulding) 26c5d75034 Remove section on the anonymous lifetime; this doesn't make sense
I think this section needs more motivation or else it doesn't belong in
the book and should be documented somewhere else. It also appears,
according to the tracking issue, that there is more to be done, which I
think will affect best practices and how this is used in the wild.

Basically, I don't think this feature is ready for the book yet.

Reopens #1273
2019-01-03 17:52:31 -05:00
Carol (Nichols || Goulding) 532c0f1bbd Removing the detail about aligning the slice
This is way too much detail and belongs in the Nomicon instead
2019-01-03 17:52:31 -05:00
Carol (Nichols || Goulding) 8edf0457ab Fixes made in second edition that needed to be propagated 2019-01-03 17:09:58 -05:00
Carol (Nichols || Goulding) d096613a6f Edits and extracting things for nostarch 2019-01-03 17:09:58 -05:00
Carol (Nichols || Goulding) db41b5be7c Editing and shipping new text to nostarch 2019-01-01 19:25:30 -05:00
Carol (Nichols || Goulding) b1d99a0837 Revert section reference change 2019-01-01 16:45:59 -05:00
Carol (Nichols || Goulding) 356d131f57 Update and extract Traits as Parameters section 2019-01-01 16:45:59 -05:00
Marcus Stollsteimer e07431ffa9 Small language improvement in ch11-02 2019-01-01 21:59:51 +01:00
Carol (Nichols || Goulding) cd98b2ddf7 Edit and extract new text for nostarch 2019-01-01 15:57:18 -05:00
Carol (Nichols || Goulding) 0bc65582c3 Updating and extracting some new text 2019-01-01 15:29:03 -05:00
Carol (Nichols || Goulding) eb6d439aae Edit and extract some new text about match expressions and errors 2019-01-01 15:29:02 -05:00
Carol (Nichols || Goulding) ef0c4c4227 Change colon to period 2019-01-01 15:01:27 -05:00
Carol (Nichols || Goulding) eab3df96e3 Update and extract backtrace 2019-01-01 15:01:27 -05:00
Carol (Nichols || Goulding) f9a15404df Make a cross reference more specific and linked 2019-01-01 15:01:27 -05:00
Carol (Nichols || Goulding) 417784bd38 Update and extract an error message 2019-01-01 15:01:26 -05:00
Carol (Nichols || Goulding) 5453267387 Update an error message 2019-01-01 13:51:03 -05:00