Commit Graph

5075 Commits

Author SHA1 Message Date
Carol (Nichols || Goulding) cb0a24007f Snapshot changes to ch7 to consider sending to nostarch 2024-04-25 17:04:25 -04:00
Carol (Nichols || Goulding) f954cb859f Snapshot changes to generated ch7 that SHOULDN'T be sent to nostarch
This snapshot contains line wrapping problems, irrelevant comments,
extraneous output lines, and differences we're going to allow between
the online and print version.

The intention is to make this a baseline commit for chapter 7 that we
can diff against to find changes to consider sending to nostarch as tiny
tweaks.
2024-04-25 17:04:25 -04:00
Carol (Nichols || Goulding) 98165c4279 Backport changes from print for ch7 2024-04-25 17:04:25 -04:00
Chris Krycho d207d894cc
Merge pull request #3898 from rust-lang/chriskrycho/crab-pincers
Ch. 2: intentionally use `{}` at first
2024-04-19 13:48:19 -06:00
Chris Krycho 0b4e00345c
Merge pull request #3897 from nyurik/redirect-lints
Inline fmt lints for `redirects/`
2024-04-19 13:48:13 -06:00
Chris Krycho 502d012cab Ch. 2: intentionally use `{}` at first
This supports the prose in the guessing game tutorial, which uses this
as a way of teaching where you can do `{foo}` and where you cannot.
2024-04-19 13:42:05 -06:00
Yuri Astrakhan c13271897d Inline fmt lints for `redirects/`
I couldn't find any documentation of how `redirects/` dir is being used,
but fixed inlined format args for consistency
2024-04-19 15:40:41 -04:00
Chris Krycho 8a79f3e15d
Merge pull request #3287 from bravequickcleverfibreyarn/listing-12-02
ch12-03: `expect` is not used multitude times by this chapter
2024-04-19 13:36:49 -06:00
Chris Krycho 62516ee9e3
Merge pull request #3896 from nyurik/inline-fmt-arg
Inline format args to `tools/src`
2024-04-19 13:36:10 -06:00
Chris Krycho f3d9661aff
Merge pull request #3290 from agotsis/closure-grammar
Improve awkward phrasing around the kinds of closures
2024-04-19 13:35:36 -06:00
Chris Krycho 54726034c5
Ch. 12.3: be clearer about how `expect` was used 2024-04-19 13:35:31 -06:00
Chris Krycho 8264d69aa6
Ch. 13: `unwrap_or_else` takes all three kinds of closures 2024-04-19 13:31:53 -06:00
Yuri Astrakhan c5211edeec Apply clippy::uninlined_format_args fix 2024-04-19 15:20:22 -04:00
Chris Krycho 0bcde15346
Merge pull request #3890 from rust-lang/push-vmxrspyskulq
Ch. 14: clarify workspace dependency reuse
2024-04-19 13:19:52 -06:00
Chris Krycho 50149d92e0
Merge pull request #3281 from thedumbsloth/function_name_fix_7.3
Edit on line no. 153. Replaced fn add_to_waitlist with fn eat_at_restaurant.
2024-04-19 13:12:00 -06:00
Chris Krycho 874d9a2131
Merge pull request #3895 from rust-lang/chriskrycho/vhb
Ch. 2: less ambiguity about numbers
2024-04-19 13:06:51 -06:00
Chris Krycho 523d960984 Merge `main` into `chriskrycho/vhb` 2024-04-19 13:02:06 -06:00
Chris Krycho 0729f34edc Ch. 2: Further simplify language about numbers 2024-04-19 12:56:58 -06:00
Chris Krycho f9d4e058a9
Merge pull request #3363 from vinsburg/patch-4
Clarified first slices paragraph
2024-04-19 12:51:38 -06:00
Chris Krycho 82df41e8bd Ch. 4: include link forward to collections
Remove the additional, extraneous info from the Ch. 4. section 3 intro.
2024-04-19 12:49:38 -06:00
Chris Krycho 162d540045
Merge pull request #3385 from nyurik/inlinefmt2
Inline all format arguments
2024-04-19 12:03:47 -06:00
Chris Krycho 6196a0ab45 Merge `main` into `nyurik:inlinefmt2` 2024-04-19 11:57:29 -06:00
Chris Krycho 96224742f3
Merge pull request #3048 from nyurik/format-ident
Use v1.58 captured ident formatting in examples
2024-04-19 11:49:12 -06:00
Chris Krycho f84626dbe0
Merge pull request #3894 from rust-lang/revert-3397-ch18-03-pattern-syntax.md
Revert "ch18-03: Guarded match arm exhaustivness clarification"
2024-04-18 16:34:49 -06:00
Chris Krycho d737e4db6b
Revert "ch18-03: Guarded match arm exhaustivness clarification" 2024-04-18 16:14:25 -06:00
Chris Krycho 8e5e4ae8df
Merge pull request #3893 from rust-lang/push-zwrsqqxunozz
Ch. 18: further clarify about irrefutable patterns
2024-04-18 14:00:38 -06:00
Chris Krycho 0b869eecc8 Ch. 18: further clarify about irrefutable patterns 2024-04-18 13:57:55 -06:00
Chris Krycho 976b2d812d
Merge pull request #3381 from bravequickcleverfibreyarn/ch18-02-refutability.md
ch18-02: Minor corrections
2024-04-18 13:55:32 -06:00
Chris Krycho 6d8afd25f0
Merge pull request #3217 from frankplow/error-handling-uses
Make style of listings 9-7 and 9-8 consistent with 9-6
2024-04-18 13:44:41 -06:00
Chris Krycho 49157edbca
Merge pull request #3397 from bravequickcleverfibreyarn/ch18-03-pattern-syntax.md
ch18-03: Guarded match arm exhaustivness clarification
2024-04-18 12:28:53 -06:00
Chris Krycho 18effd3176
Merge pull request #3284 from bravequickcleverfibreyarn/ch11-03-test-organization.md
ch11-03: Unnecessary import removal
2024-04-18 12:13:52 -06:00
Chris Krycho 076420ce20 Ch. 11: `use` scope tweak 2024-04-18 12:08:28 -06:00
Chris Krycho afe19ddb7e
Merge pull request #3394 from MarijnRitzen/patch-3
Update ch20-01-single-threaded.md
2024-04-17 17:17:06 -06:00
Chris Krycho d68ddcc4d5
Ch. 20: shorter version of corrected listing 2024-04-17 17:16:59 -06:00
Chris Krycho 0eb2257923
Merge pull request #3418 from krishnakumarg1984/kg/add_appendixe_url
In Appendix D, adds hyperlink to Appendix E
2024-04-17 17:11:02 -06:00
Chris Krycho ba4b237a2f
Merge pull request #3433 from SilkovAlexander/typo_to_trait
Chapter 13-03 fixed Iterator 'type' to 'trait'
2024-04-17 17:07:52 -06:00
Chris Krycho 343c507f78
Merge pull request #3534 from generalmimon/patch-1
Fix the expected substring in ch11-01
2024-04-17 16:20:03 -06:00
Chris Krycho efb99cdcae
Merge pull request #3892 from rust-lang/chriskrycho/ch-17-compilation-clarification
Ch. 17: clarify 'in order to compile'
2024-04-17 16:15:52 -06:00
Chris Krycho 2320e43bfc Ch. 17: clarify 'in order to compile' 2024-04-17 16:06:12 -06:00
Chris Krycho d6adb1e276
Merge pull request #3891 from rust-lang/revert-3501-main
Revert "Chapter 15-05: Fix incorrect interpretation of compiler error"
2024-04-17 15:57:27 -06:00
Chris Krycho ceacd6d75f
Revert "Chapter 15-05: Fix incorrect interpretation of compiler error" 2024-04-17 15:57:05 -06:00
Chris Krycho 3bc567ead6
Merge pull request #3501 from kingh0730/main
Chapter 15-05: Fix incorrect interpretation of compiler error
2024-04-17 15:57:02 -06:00
Chris Krycho 55599681b9
Merge pull request #3506 from schuelermine/fix/cargo-login-security
Remove direction to authenticate with `cargo login {API token}`
2024-04-17 15:52:05 -06:00
Chris Krycho e9a58e3c8e
Ch. 14: remove extra text from cargo login code sample 2024-04-17 15:42:41 -06:00
Chris Krycho a15d78c963
Merge pull request #3888 from dtolnay-contrib/syn2
Update syn dependencies in Chapter 19 to 2.0
2024-04-17 12:36:48 -06:00
Chris Krycho 1221096717 Ch. 14: clarify workspace dependency reuse
Fixes #3141
2024-04-17 12:35:06 -06:00
Chris Krycho 7f2149c356
Merge pull request #3889 from rust-lang/chriskrycho/ch-3-break-vs-return
Chapter 3: Clarify `return` vs. `break`.
2024-04-17 12:03:43 -06:00
Chris Krycho 38831b8619 Chapter 3: Clarify `return` vs. `break`. 2024-04-16 14:35:53 -06:00
David Tolnay e81491c11e
Update syn dependencies in Chapter 19 to 2.0 2024-04-15 11:24:35 -07:00
Petr Pucil e58f1cabce Fix "`Display` type" to "`Display` trait" in ch19-03 2024-04-11 16:49:51 -04:00