Commit Graph
4141 Commits
Author SHA1 Message Date
Carol (Nichols || Goulding) f0dbd1c247 Disable playground button on listings in ch 12 that use CLI args
You can't pass CLI args to the playground, so it doesn't make sense to
run them in the browser. Also, these were marked as should_panic,
because if you *do* run them in the browser or without arguments, they
panic, but that's not the happy path we're writing, so "should" panic
isn't really correct.

Fixes #2370.
2021-02-28 20:07:03 -05:00
Carol (Nichols || Goulding) d710ea4add Reword ambiguous sentence. Fixes #2317. 2021-02-22 20:29:57 -05:00
Carol (Nichols || Goulding) f207d4125b Rename shoes_in_my_size to shoes_in_size to be a better example
Fixes #2262.
2021-02-22 20:20:31 -05:00
Carol (Nichols || Goulding) 52498ab08e Merge pull request #2628 from obi1kenobi/patch-1
Fix visible "ANCHOR: here" in listing 13-21
2021-02-22 20:17:54 -05:00
Carol (Nichols || Goulding) 21fcf07cab Merge pull request #2627 from evanj/patch-1
minor clarification about deriving Copy and Clone
2021-02-22 20:14:30 -05:00
Predrag Gruevski 8ed41c5bfd Fix visible "ANCHOR: here" in listing 13-21
Listing 13-21 in Chapter 13.2 is currently showing `ANCHOR: here` and `ANCHOR_END: here` markers, perhaps unintentionally so: https://doc.rust-lang.org/book/ch13-02-iterators.html

I'm not familiar with the `#rustdoc_include` semantics, so this is my attempt to suggest a fix based on how the neighboring listings appear to be set up.
2021-02-22 00:10:03 -05:00
Evan Jones bb8f6cc9ba minor clarification about deriving Copy and Clone
Please feel free to reject this, but I found this sentence to be very confusing. I didn't understand the connection between the first sentence ("You can derive Copy on any type whose ...") with the next ("You can only apply the Copy trait ..."). I had to read the reference, and found its explanation to be clearer:

https://doc.rust-lang.org/std/marker/trait.Copy.html

"Clone is a supertrait of Copy, so everything which is Copy must also implement Clone. If a type is Copy then its Clone implementation only needs to return *self (see the example above)."

I'm not sure we need to get into the supertrait part, but I tried to make the explanation here similar to the reference versions.
2021-02-21 08:38:50 -05:00
Carol (Nichols || Goulding) 74edb8dfe0 Clarify relationship of trait to mock object
Fixes #2608.
2021-02-20 21:34:47 -05:00
Carol (Nichols || Goulding) 347449cd15 Fix "message" that should be "method"
Connects to #2608
2021-02-20 21:34:47 -05:00
Carol (Nichols || Goulding) 7876f3d079 Merge pull request #2626 from Bernd-L/master
Fix #2625
2021-02-20 21:23:23 -05:00
Carol (Nichols || Goulding) 28841dd4c0 Merge pull request #2621 from jackmichalak/master
fix misleading hash claim
2021-02-20 21:22:02 -05:00
Carol (Nichols || Goulding) 9597570c11 Make link syntax consistent and word wrap 2021-02-20 21:20:29 -05:00
saki-osive 0b1831e0f8 Added hyperlinks to Appendices 2021-02-20 21:17:20 -05:00
Carol (Nichols || Goulding) 1c4223e7ef Use console syntax highlighting in some more places 2021-02-20 21:15:22 -05:00
Carol (Nichols || Goulding) e34408fa0c Merge remote-tracking branch 'origin/pr/2615' 2021-02-20 21:09:35 -05:00
Carol (Nichols || Goulding) e666cf367c Fix broken blockquote 2021-02-20 21:07:04 -05:00
Bernd-L ae652f50ba Fix #2625
"Run this code" should be "compile this code" (ch18-03-pattern-syntax)

Fixes #2625
2021-02-20 15:04:48 +01:00
Carol (Nichols || Goulding) 937b020889 Update one more bit of output caught by the update rust script 2021-02-17 21:28:33 -05:00
Carol (Nichols || Goulding) 4a08b68ca1 Update and clarify some text affected by the rand update rand-0.8 2021-02-17 21:13:47 -05:00
Carol (Nichols || Goulding) 24774070de Update lock files and output 2021-02-17 21:13:47 -05:00
Carol (Nichols || Goulding) fa10e20da6 Update error output for changes to chapter 10 listings 2021-02-17 20:38:44 -05:00
Carol (Nichols || Goulding) e9ec18af92 Merge remote-tracking branch 'origin/pr/2542' 2021-02-17 20:27:50 -05:00
Carol (Nichols || Goulding) ac4d627601 Tweak wording in for loop explanation 2021-02-17 20:25:38 -05:00
Carol (Nichols || Goulding) 6c87a3204f Merge remote-tracking branch 'origin/pr/2460' 2021-02-17 20:22:37 -05:00
Jack Michalak 9100e47054 fix misleading hash claim 2021-02-16 08:04:48 -08:00
Guilherme Carreiro 279f0c4416 Change 'text' formatting to 'console' on console code blocks 2021-02-14 16:57:23 +01:00
Carol (Nichols || Goulding) db5e8a5105 Update to Rust 1.50 2021-02-12 16:58:20 -05:00
Carol (Nichols || Goulding) 8a410f4d42 Merge pull request #2575 from VoidNoire/2574
Fix issue #2574 - Improve the explanation about the behaviour of `read_line`.
2021-02-12 16:45:38 -05:00
Carol (Nichols || Goulding) a2168e126d Merge pull request #2556 from marc-h38/call-vs-define
closures: replace "is called" with "is defined"
2021-02-12 16:42:38 -05:00
Carol (Nichols || Goulding) b7ab0f00ab Merge pull request #2587 from bbarker/patch-1
Minor clarification: types -> values in ch16-04
2021-02-12 16:41:50 -05:00
Carol (Nichols || Goulding) 889f2f40c6 Merge pull request #2610 from michalkaptur/master
fixed hidden code listing
2021-02-12 09:21:48 -05:00
Michal Kaptur 1763078e9a fixed hidden code listing 2021-02-12 13:39:09 +01:00
Carol (Nichols || Goulding) 8fb8bb0479 Merge remote-tracking branch 'origin/pr/2604' 2021-02-10 14:48:46 -05:00
Carol (Nichols || Goulding) eaec4ca3ce Merge pull request #2601 from heilmoli/master 2021-02-10 14:30:05 -05:00
Carol (Nichols || Goulding) ebb817e97f Merge remote-tracking branch 'origin/pr/2589' 2021-02-10 13:30:00 -05:00
Carol (Nichols || Goulding) e535032e17 Fix text wrapping
Yes, yes, hobgoblins, I know
2021-02-10 09:27:25 -05:00
Carol (Nichols || Goulding) e631c39e83 Some small rewordings I noticed while rereading just now 2021-02-09 21:30:45 -05:00
Brian Rogers aab9cfa21f Fix ch05 listings to align project names with book
The book says, "Let's make a new binary project with Cargo called
rectangles," but the listing output files use `structs` as the name.
Change this to `rectangles` to align with the book's text.
2021-02-09 13:59:02 -08:00
Carol (Nichols || Goulding) 64797533ec Merge pull request #2592 from timrobertsdev/master 2021-02-08 21:08:03 -05:00
Carol (Nichols || Goulding) 6bc9fde380 Merge pull request #2581 from apogeeoak/grammar
Removed 'of' between type alias in Ch 19-04.
2021-02-06 09:42:38 -05:00
Carol (Nichols || Goulding) 7bea3e6d23 Merge remote-tracking branch 'origin/pr/2554' 2021-02-06 09:40:00 -05:00
Oliver Heilmann ac4faae07f fixed ferris in ch03-02 - code now compiles but panics 2021-02-01 21:47:41 +00:00
appleJax ebdd05adc8 revert prettier autofix for ch2 2021-01-31 11:30:05 -08:00
appleJax 120ddc29e8 revert prettier autofix 2021-01-31 11:23:41 -08:00
appleJax 519eddb702 update 0.8.1 to 0.8.3 2021-01-31 11:17:26 -08:00
Timothy Roberts 58ac9ea03b Fix typo in ch-20-01-single-threaded.md 2021-01-31 02:47:26 -05:00
apogeeoak 98c15e36ec Updated listings in Ch 20-02 and 20-03 with Content-Length header. 2021-01-26 17:45:36 -05:00
apogeeoak 395c1b8c2e Added Content-Length header to Ch 20-01 listings. 2021-01-26 16:30:20 -05:00
Brandon Elam Barker ab2540e356 Minor clarification: types -> values in ch16-04 2021-01-26 09:11:08 -05:00
apogeeoak 2873cc9762 Fixed typo in Ch 19-04. 2021-01-21 17:16:47 -05:00