Commit Graph

2827 Commits

Author SHA1 Message Date
Chris Krycho
56ec353290 More changes caught during ↔ backports for print edition 2025-03-13 08:11:51 -06:00
Chris Krycho
02e053cdbb nostarch: update Word documents with revisions from web version 2025-03-12 17:24:28 -06:00
Chris Krycho
e5c8a0c99d Ch. 10: Make social media discussion generic.
Twitter is now X, who knows what 'tweets' are called, and whether *any*
of the current crop of social media platforms will exist by the time the
2027 or 2030 editions of Rust roll around, who knows?
2025-02-27 15:06:51 -07:00
Chris Krycho
6b65e95005 Another Ch. 17 -> 18 fix 2025-02-26 13:20:28 -07:00
Chris Krycho
063b1f8aff Ch. 05: further tweak to wording about user1 availability
This is a tricky thing to get “just right”, and I am not *totally* happy
with this solution, but I think it’s actually better without the “as a
whole” given the addition of the sentence at the end indicating that its
fields can still be accessed.
2025-02-26 12:52:43 -07:00
Chris Krycho
0ca2482a69 Ch. 19: Correct the discussion of fn type and closures 2025-02-25 15:50:33 -07:00
Chris Krycho
2800281fc4 Ch. 17: fresh-eyes edits
Or: what happens when you reread your own work after a couple months
away from it!
2025-02-25 10:10:33 -07:00
Chris Krycho
6ae5d86ca2 Ch. 17: drop lifetime not required in 2024 Edition
This makes for a nicely simpler introduction of this feature!
2025-02-25 09:27:14 -07:00
Chris Krycho
ca030ddb09 Merge pull request #4240 from kpreid/patch-1
Appendix B, Operators: Replace “member access” with “field access” and “method call”.
2025-02-25 09:26:41 -07:00
Chris Krycho
c7edf19e58 Merge pull request #4241 from rust-lang/2024-edition
Update to Rust 1.85 and 2024 Edition!
2025-02-25 09:26:10 -07:00
Chris Krycho
0833386eab Appendix B: restructure handling of . and parens
In Table B-8, instead of treating “tuples” as the primary concern, treat
parentheses as primary and tuples as one of the contexts. Move the tuple
index access to live alongside field and method access.
2025-02-25 09:10:29 -07:00
Chris Krycho
b8b94b3d93 Rust 1.85/2024 Edition: update all edition references 2025-02-25 09:02:49 -07:00
Chris Krycho
dac5234891 Rust 1.85/2024 Edition: manual regeneration changes 2025-02-25 07:50:55 -07:00
Chris Krycho
080147a27d Update to Rust 1.85 and 2024 Edition! 2025-02-24 13:55:20 -07:00
Chris Krycho
4958a5dbbc Merge pull request #4239 from rust-lang/fix-spacing-in-chapter-one
Chapter 1: fix 'four things' now that spacing is not emphasized
2025-02-24 11:36:27 -07:00
Kevin Reid
69980b8e85 Replace “member access” with “field access” and “method call”.
Rust doesn’t have a single “member access” operator, but two different operators both using the dot.
2025-02-24 10:03:46 -08:00
Chris Krycho
e476d7b6fa Chapter 1: fix 'four things' now that spacing is not emphasized 2025-02-24 08:51:18 -07:00
Mario D'Andrea
ba1646de18 Ch. 17: Fix typos 2025-02-23 15:58:40 +01:00
Chris Krycho
18f6e63e91 Merge pull request #4224 from rust-lang/nostarch-backports
NoStarch backports
2025-02-13 12:29:47 -07:00
Chris Krycho
5d22a358fb Backport fixes from NoStarch
This is an exhaustive pass in preparation for going the *other* way for
the 2024 Edition print update, i.e. the Third Edition of the print book.
2025-02-13 12:25:25 -07:00
Max Siling
8698ba57fc Fix example for cargo fix
Adding underscore to the start of an unused variable name is no longer
`MachineApplicable`, so the example no longer works.

This changes it to use `unused_mut` instead.
2025-02-11 13:01:18 +03:00
Hans Gerwitz
56cfe50929 Add missing word in ch17-04-streams.md 2025-02-01 15:30:38 +01:00
Chris Krycho
d4b0a0f26b chore: reformat src with dprint 2025-01-22 10:10:47 -07:00
Chris Krycho
9b552dd133 Merge pull request #4209 from rust-lang/redirect-fix-chapter-gap-chaptest
Redirects: get rid of the weird gap in Ch. 20 sections!
2025-01-22 09:19:58 -07:00
Chris Krycho
dc0613106f Redirects: get rid of the weird gap in Ch. 20 sections!
Bonus: fix internal *numbering* references in several places where I had
missed it when renumbering the links for the new Ch. 17.
2025-01-22 09:17:08 -07:00
Marijn Schouten
33b7becc5f Document that use is also for precise capturing (#4210)
Co-authored-by: Chris Krycho <hello@chriskrycho.com>
2025-01-22 08:09:26 -07:00
Chris Krycho
6a19390c62 Ch. 17 (NoStarch edits): fix an internal link 2025-01-21 15:46:57 -07:00
Chris Krycho
7338a025d4 Ch. 17 (NoStarch edits): spelling fixes and dictionary updates 2025-01-21 15:42:12 -07:00
Chris Krycho
483b1c60e1 Ch. 17 (NoStarch edits): rewrite the introduction! 2025-01-21 15:30:05 -07:00
Chris Krycho
c8b4da5d97 Ch. 17 (NoStarch edits): rename the chapter 2025-01-21 13:57:15 -07:00
Chris Krycho
75166b52f9 Ch. 17 (NoStarch edits): rename 17.02 2025-01-21 13:57:15 -07:00
Chris Krycho
d3ecf99d1b Ch. 17.01 (NoStarch Edits): standardize ‘stream’ and Stream usage
Happily, I was *much* more consistent on this. Curious!
2025-01-21 13:57:15 -07:00
Chris Krycho
3927b5052e Ch. 17.01 (NoStarch Edits): standardize ‘future’ and Future usage 2025-01-21 13:57:15 -07:00
Chris Krycho
f148e469e5 Ch. 17 (NoStarch edits): final pass on inline edits
There are a handful more edits that are very slightly larger in scope,
including possibly renaming the chapter and updating the intro. This
does it for the line edits, though!
2025-01-21 13:57:15 -07:00
Chris Krycho
06d73f3935 Ch. 17.06 (NoStarch edits) 2025-01-21 13:57:15 -07:00
Chris Krycho
eec734e469 Ch. 17.05 (NoStarch edits): third section 2025-01-21 13:57:15 -07:00
Chris Krycho
03d56fa33c Ch. 17.05 (NoStarch edits): second section 2025-01-21 13:57:15 -07:00
Chris Krycho
a2aed4763a Ch. 17.05 (NoStarch edits): first section proper 2025-01-21 13:57:15 -07:00
Chris Krycho
6346b5e689 Ch. 17.05 (NoStarch edits): intro section 2025-01-21 13:57:15 -07:00
Chris Krycho
31e25ce8a9 Ch. 17.04 (NoStarch edits): third section 2025-01-21 13:57:15 -07:00
Chris Krycho
889ef2cd7c Ch. 17.04 (NoStarch edits): second section 2025-01-21 13:57:15 -07:00
Chris Krycho
e87e3b0e7a Ch. 17.04 (NoStarch edits): first section 2025-01-21 13:57:15 -07:00
Chris Krycho
c1e93e71dc Ch. 17.03 (NoStarch edits): fourth section 2025-01-21 13:57:15 -07:00
Chris Krycho
e2cbfcb72f Ch. 17.03 (NoStarch edits): third section 2025-01-21 13:57:15 -07:00
Chris Krycho
2fa5fd4414 Ch. 17.03 (NoStarch edits): second section 2025-01-21 13:57:15 -07:00
Chris Krycho
d6dbbd1473 Ch. 17.03 (NoStarch edits): first section 2025-01-21 13:57:15 -07:00
Chris Krycho
aeb9f55542 Ch. 17.02 (NoStarch edits): second section 2025-01-21 13:57:15 -07:00
Chris Krycho
aae7d75a63 Ch. 17.02 (NoStarch edits): first section 2025-01-21 13:57:15 -07:00
Chris Krycho
c549742f9c Ch. 17.01 (NoStarch edits): fifth section 2025-01-21 13:57:15 -07:00
Chris Krycho
f582119eb9 Ch. 17.01 (NoStarch edits): fourth section 2025-01-21 13:57:15 -07:00