Carol (Nichols || Goulding)
fc2f690fc1
Fix wrapping
2021-03-05 14:03:22 -05:00
Carol (Nichols || Goulding)
bcd40eb12d
Merge pull request #2633 from gthb/patch-1
...
fix: redundant double introduction of shadowing
2021-03-05 14:02:16 -05:00
Gunnlaugur Thor Briem
ce745d7615
fix: redundant double introduction of shadowing
2021-03-01 21:59:29 +00:00
Carol (Nichols || Goulding)
0f87daf683
Ohhh the should_panic was for mdbook test. Oops
...
`panics` is the ferris class, which was why ferris didn't show up on
these. The doc tests don't pass CLI args either, so these will panic
during tests, and we don't want to ignore them because we do want to
compile them.
This should fix the build 🤞
2021-03-01 08:54:04 -05:00
Carol (Nichols || Goulding)
69e592dcdd
Fix bad regex in the update rustc script and regenerate broken output
...
Fixes #2595
2021-02-28 21:34:07 -05:00
Carol (Nichols || Goulding)
1e9ee0217e
Clarify that we only mentioned unwrap_or_else, but haven't explained it
...
Fixes #2596 .
2021-02-28 20:47:02 -05:00
Carol (Nichols || Goulding)
ea290a5376
Add ferris to some listings that don't compile. Fixes #2598
2021-02-28 20:43:14 -05:00
Carol (Nichols || Goulding)
5bb407aa4a
Remove fancy quote from a code comment
...
This isn't always recognized as UTF-8 on all platforms after
copy-pasting.
Fixes #2606
Related to #2539 , #1307 , #1533
2021-02-28 20:33:09 -05:00
Carol (Nichols || Goulding)
2250f51091
Panic now points at our code, not stdlib slice code
...
Fixes #2550 .
2021-02-28 20:31:26 -05:00
Carol (Nichols || Goulding)
24e275d624
Disable playground on thread::sleep examples
...
The playground times out, and the point of these examples is seeing the
pause in between the printlns, which the playground doesn't do.
Fixes #2607 .
2021-02-28 20:12:42 -05:00
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