Marijn Schouten and Chris Krycho
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
82a4a49789
Merge pull request #4206 from rust-lang/ch17-edits
...
Ch. 17: NoStarch Edits!
2025-01-21 15:49:39 -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
Chris Krycho
22f1adda49
Ch. 17.01 (NoStarch edits): third section
2025-01-21 13:57:15 -07:00
Chris Krycho
a239253950
Ch. 17.01 (NoStarch edits): second section
2025-01-21 13:57:15 -07:00
Chris Krycho
6f7f5efbb3
Ch. 17.01 (NoStarch Edits): first section
2025-01-21 13:57:15 -07:00
Chris Krycho
52ad405c46
Ch. 17.00 (NoStarch edits): second section
2025-01-21 13:57:15 -07:00
Chris Krycho
acee5a9fb2
Ch. 17.00 (NoStarch edits): first section
...
Yeah, this is going to take a while!
2025-01-21 13:57:15 -07:00
Chris Krycho
8c95f8cc43
Merge pull request #4205 from rust-lang/appendix-a-future-use-keywords
...
Appendix A: don't create separate lists for future use keywords
2025-01-21 13:01:17 -07:00
Chris Krycho and Matthias Totschnig
486408f20c
Improve note on unsafe functions and unsafe blocks ( #4204 )
...
Improve note on unsafe functions and `unsafe` blocks
See discussion in #4147 , #4148 .
---------
Co-authored-by: Matthias Totschnig <mail@mth.st >
2025-01-21 13:00:50 -07:00
Chris Krycho
3f4e7d8ed9
Appendix A: don't create separate lists for future use keywords
...
This was a bad merge after applying dprint. Fixed up now.
2025-01-21 12:55:52 -07:00
Chris Krycho
8a0eee28f7
Merge pull request #4203 from rust-lang/2024-more-raw-borrows
...
Rust 2024: use `&raw` with `static mut` in Ch. 20.
2025-01-14 09:41:30 -07:00
Chris Krycho
7a15fd3a26
Rust 2024: use &raw with static mut in Ch. 20.
2025-01-14 08:52:03 -07:00
Chris Krycho
4e219c7af0
Merge pull request #4202 from rust-lang/2024-edition-keywords
...
Rust 2024: update edition info in keywords appendix
2025-01-13 13:54:33 -07:00
Chris Krycho
bf2f92de17
Rust 2024: update edition info in keywords appendix
2025-01-13 13:43:01 -07:00
Chris Krycho
ec07cb8cf5
Merge pull request #4201 from rust-lang/listing-simple-no-filename
...
infra: don’t emit `Filename: ` in mdbook-trpl-listing output
2025-01-13 13:38:25 -07:00
Chris Krycho
551b0ffe05
infra: don’t emit Filename: in mdbook-trpl-listing output
...
Noted by the NoStarch folks when working on edits for Ch. 17.
2025-01-13 13:28:46 -07:00
Chris Krycho
5a65e2af06
Merge pull request #4196 from rust-lang/appendix-e-2024-edition
...
Appendix E: Update for 2024 Edition
2025-01-09 10:59:43 -07:00
Chris Krycho
0f616a68c3
Appendix E: Update for 2024 Edition
2025-01-09 10:54:27 -07:00
Chris Krycho
2e4cd43ff4
Merge pull request #4195 from rust-lang/mdbook-strip-heading-markup
...
Implement and integrate an mdBook plugin to strip markup from headings
2025-01-08 12:12:09 -07:00
Chris Krycho
d82e6ea297
build: enable mdbook-trpl-headings
2025-01-08 11:59:19 -07:00
Chris Krycho
678ace3ca6
infra: implement mdbook plugin to strip markup from headings
2025-01-08 11:59:19 -07:00
Chris Krycho
1c26628336
infra: extract CompositeError to use throughout the crate
2025-01-08 11:52:29 -07:00
DrunkLeen and Chris Krycho
fd0c2e9007
Update appendix-06-translation.md - new persian translation added ( #4192 )
...
as I mentioned in my translation issue, I have mostly completed a translation of the Rust Book into Persian (Chapters 0 to 16) and still working on the complete chapters. While a previous translation exists, it only covers the first three or four chapters and remains incomplete.
Co-authored-by: Chris Krycho <hello@chriskrycho.com >
2025-01-08 09:46:54 -07:00
Ikram Khan and Chris Krycho
fc6451935c
Remove extraneous use statement ( #4193 )
...
In Listing 14-7 of Chapter 14, the `use add_one;` statement is redundant
and can be removed. Before the Rust 2018 edition, this statement was
required to bring the `add_one` crate into scope, so it likely got
missed during refactorings from that transition.
By removing this line, the code becomes more concise and reflects the
current best practices for using external crates in Rust.
Issue #4186
---------
Co-authored-by: Chris Krycho <hello@chriskrycho.com >
2025-01-08 07:42:13 -07:00
Chris Krycho
3d058cab5b
Merge pull request #4078 from marlamb/feature/take-measurement-inaccuracy-intervals-into-account
...
Take measurement inaccuracy intervals into account
2025-01-06 10:35:39 -07:00
Chris Krycho
f207fae674
Merge pull request #4183 from RadicalTray/main
...
Ch. 21.3: remove error ferris from working code
2025-01-06 09:08:48 -07:00