Akhil Indurti
55c0582c4e
Reword number of library crates a package contains
...
Previous wording is confusing because
1. "zero or one" and "no more" are redundant.
2. "must" and "zero or one" are contradictory. If one is not required, why is there a "must"?
2021-06-05 18:32:32 -04:00
Steve Klabnik
55a26488dd
Merge pull request #2717 from helixbass/ch11-01-writing-tests-past-tense-led
...
Past-tensify "lead" -> "led"
2021-05-09 12:03:18 -05:00
Carol (Nichols || Goulding)
f032cf9e7d
Merge pull request #2718 from rust-lang/update-rustc
2021-05-06 22:32:15 -04:00
Carol (Nichols || Goulding)
1263e3fad3
Update to 1.52
2021-05-06 22:28:13 -04:00
Carol (Nichols || Goulding)
b31140b9fa
Update to 1.51
2021-05-06 20:54:26 -04:00
Julian Rosse
9e4730d111
past-tensify "lead" -> "led"
2021-05-05 20:46:44 -04:00
Steve Klabnik
50dd06cb71
Merge pull request #2704 from shirshak55/patch-1
...
Update link in COPYRIGHT (http to https)
2021-04-23 13:21:54 -05:00
Shirshak
1fc25a4c42
Update COPYRIGHT
2021-04-22 14:45:45 +05:45
Steve Klabnik
b54090a99e
Merge pull request #2658 from kangxiaoning/deref
...
correct the signature of the `deref` method
2021-03-24 11:21:46 -05:00
kangxiaoning
475807042f
correct the signature of the deref method
2021-03-21 21:33:10 +08:00
Carol (Nichols || Goulding)
3e4f4789d4
Merge pull request #2646 from gsserge/immutable
...
Clarify the immutability of a reference
2021-03-19 10:19:03 -04:00
Carol (Nichols || Goulding)
1d27ae30f9
Tweak wording around Windows representation of enter
2021-03-19 10:18:17 -04:00
Carol (Nichols || Goulding)
22b7e0f350
Merge pull request #2648 from wthlolbbq/patch-1
...
Ch. 02 note - Enter results in CRLF on Windows
2021-03-19 10:14:49 -04:00
Carol (Nichols || Goulding)
925c7ea178
Merge pull request #2649 from Kixunil/patch-1
...
Added an example of slicing result
2021-03-19 10:14:12 -04:00
Carol (Nichols || Goulding)
bf33eb6289
Fix word wrapping, mention dictionary.txt is also in the ci dir
2021-03-19 10:08:48 -04:00
Carol (Nichols || Goulding)
070c491138
Merge pull request #2652 from xrmx/patch-1
...
README: note that spellcheck.sh is in ci directory
2021-03-19 10:07:34 -04:00
Carol (Nichols || Goulding)
31c68554ac
Merge pull request #2655 from leonardus/master
...
Change someurl.com to example.org
2021-03-19 10:07:07 -04:00
leonardus
ec67fb5777
Change someurl.com to example.org
2021-03-18 14:35:45 -04:00
Riccardo Magliocchetti
e05db66dfd
README: note that spellcheck.sh is in ci directory
2021-03-17 08:59:39 +01:00
Martin Habovštiak
ca34e5965a
Added an example of slicing result
...
This should make it clearer how slicing works.
2021-03-15 18:19:39 +01:00
wthlolbbq
9b99745acc
Ch. 02 note - Enter results in CRLF on Windows
...
verify with https://doc.rust-lang.org/std/primitive.char.html#examples-6 and https://www.unicode.org/charts/PDF/U0000.pdf
2021-03-14 17:04:01 +01:00
Sergey Glushchenko
a7a6804a24
Clarify the immutability of a reference
2021-03-12 19:40:45 +01:00
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