Commit Graph
4123 Commits
Author SHA1 Message Date
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
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
Steve Klabnik e724bd8265 Merge pull request #2566 from rust-lang/outsmarting-the-smartypants-compiler
Fixes #2417. Get the index from user input instead of a const.
2021-01-20 08:19:49 -06:00
Jesse Ira Abadilla 9281a28b9b Fix issue #2574 - Improve the explanation about the behaviour of read_line. 2021-01-20 14:08:04 +00:00
Carol (Nichols || Goulding) f0c83d3570 Merge pull request #2569 from rust-lang/more-main-wrapping-disabling
Turn off the playground in a bunch more lib.rs inclusions
2021-01-13 22:26:05 -05:00
Carol (Nichols || Goulding) 9e30688e0a Turn off the playground in a bunch more lib.rs inclusions
Missed these spots in eb60fed :(

Fixes #2560.
2021-01-13 22:16:59 -05:00
Carol (Nichols || Goulding) 04c4e8e9a1 Merge pull request #2567 from rust-lang/rust-1.49 2021-01-13 08:52:16 -05:00
Carol (Nichols || Goulding) 2485f9023b Update to 1.49 2021-01-12 22:05:36 -05:00
Carol (Nichols || Goulding) 3e8b12604a Rewrap to 80 chars like the rest of this repo 2021-01-12 21:39:58 -05:00
Carol (Nichols || Goulding) 79bafdc6be Fixes #2417. Get the index from user input instead of a const.
The compiler has gotten sufficiently smart regarding const evaluation to
catch many trivial instances of array-index-out-of-bounds at compile
time. However, the compiler can't read peoples' minds... yet.
2021-01-12 21:26:29 -05:00
appleJax 16e42c5cc6 add sentence to stress the importance of the version number 2021-01-09 18:48:56 -08:00
appleJax 77cc92b7c3 revert prettier autofix 2021-01-09 18:09:53 -08:00
appleJax 80721829d0 update 0.8.0 to 0.8.1 2021-01-09 17:54:49 -08:00
Carol (Nichols || Goulding) ac57a0ddd2 Merge pull request #2561 from rust-lang/update-mdbook
Update version of mdbook we're testing with to 0.4.5
2021-01-09 14:18:45 -05:00
Carol (Nichols || Goulding) f09dc19abe Update version of mdbook we're testing with to 0.4.5
This matches what rust-lang/rust has just updated to because of the
security issue. The security issue doesn't affect this repo directly,
but we should be running our CI using the same version as Rust does to
avoid breaking the Rust build because of differences.
2021-01-09 14:06:05 -05:00
Marc Herbert 8acef6cfd4 closures: replace "is called" with "is defined"
- Confusing "call" with "define" is especially unfortunate when
  documenting closures.
  The previous text was "... called in only ONE place ... we're still
  calling the closure TWICE" - clearly wrong.

- Also expand vague "define code" earlier in the page to the more
  explicit "refer to `simulated_expensive_calculation`". "define code"
  was especially vague considering 1. this is dummy code that doesn't
  really define anything, and 2. the code gets moved when changing
  from function to closure.
2021-01-03 21:50:23 -08:00
ThatsNoMoon 71d41266ed Improve compile failure question mark
This improves the contrast of the question mark in the compile failure ferris icon by adding a white border. This way the question mark is visible in both light and dark themes.
2021-01-02 22:20:49 -07:00
appleJax aa0213ebb5 update Cargo.tomls and Cargo.locks 2020-12-28 16:16:58 -08:00
appleJax 080160a5e9 update rand version 2020-12-24 17:13:50 -08:00
Carol (Nichols || Goulding) 77092be1eb Merge pull request #2534 from HollowMan6/patch-1
Fix grammar in ch13-01-closures.md
2020-12-22 21:27:29 -05:00