6286 Commits

Author SHA1 Message Date
Chris Krycho
917544888a Merge pull request #4754 from n1teshy/fix-async-typo
Fix grammatical typo in Chapter 17-05
2026-07-13 19:25:25 -06:00
Chris Krycho
38f15f74b4 Merge pull request #4797 from DewiTheCat/main
hotfix: incorrect link format used in ch17-06
2026-07-13 19:19:11 -06:00
Carol (Nichols || Goulding)
dd7ab4f4f4 Update to Rust 1.97 2026-07-10 15:43:43 -04:00
Dewi
b1962d960c hotfix: link in chapter 17-06 went to localhost:3000 instead of the correct domain name 2026-07-06 18:40:25 +02:00
Carol (Nichols || Goulding)
8cc0cb1389 Updating more output and lockfiles 2026-06-30 11:01:28 -04:00
Carol (Nichols || Goulding)
694f77579a Ch 01 now also has a rand version we need to remember 2026-06-30 11:01:28 -04:00
Carol (Nichols || Goulding)
35201587f4 Add another caveat about rand versions in the spot where people would have problems 2026-06-30 11:01:28 -04:00
Carol (Nichols || Goulding)
64aded88c0 Make a comment more future-proof 2026-06-30 11:01:28 -04:00
Carol (Nichols || Goulding)
c5d704c0ea Use rand's prelude instead as that's what its docs recommend 2026-06-30 11:01:28 -04:00
Abhishek Shinde
8cb9ec52eb Add RngExt to dictionary.txt to pass failing CI test. 2026-06-30 11:01:28 -04:00
Abhishek Shinde
a46eff4985 doc: upgrade rand dependency to v0.10.1 in book listings and text
Upgrades the 'rand' crate dependency from v0.8.5 to v0.10.1 across
all chapter listings and updates the corresponding book narrative to
reflect the new API structure.

Key Changes:
- Manifests: Updated 14 Cargo.toml files in listings to point to rand 0.10.1.
- Source Code: Migrated 11 main.rs and lib.rs source files under listings/ to:
  - Bring the new extension trait 'rand::RngExt' into scope instead of 'rand::Rng'.
  - Replace 'rand::thread_rng().gen_range(1..=100)' with 'rand::rng().random_range(1..=100)'.
- Chapter 1: Updated the offline caching command in ch01-01-installation.md to refer to rand@0.10.1.
- Chapter 2: Updated ch02-00-guessing-game-tutorial.md to explain RngExt, rand::rng, and random_range. Adjusted all SemVer examples, compiler outputs, and hypotheticals to use 0.10.1 / 0.10.2 / 0.11.0.
- Chapter 7: Updated the module path and import system explanation in ch07-04-bringing-paths-into-scope-with-the-use-keyword.md to target the new traits/functions.
- Chapter 14: Updated simulated cargo output in ch14-03-cargo-workspaces.md showing rand v0.10.1 being compiled.
2026-06-30 11:01:28 -04:00
Carol (Nichols || Goulding)
1640c496c1 Merge branch 'main' into patch-1 2026-06-29 16:56:02 -04:00
Dodothereal
4aa3243ed0 docs(ch13-02): fix typo 'iteration' to 'iterator' in filter example
Fixes #4705

The line "the value will be included in the iteration produced by
filter" should refer to "the iterator produced by filter", matching
the surrounding paragraph's use of "iterator" and matching what
filter actually returns (an iterator that lazily yields the chosen
items).

Verified against the current rendering on the stable book page:
https://doc.rust-lang.org/stable/book/ch13-02-iterators.html#closures-that-capture-their-environment

Only one word is changed. `dprint fmt` reports no further formatting
changes.
2026-06-29 16:53:10 -04:00
Carol (Nichols || Goulding)
5181243477 Update to Rust 1.96 2026-06-29 16:16:55 -04:00
Carol (Nichols || Goulding)
1eccbb055c Update to Rust 1.95 2026-06-29 14:47:01 -04:00
Carol (Nichols || Goulding)
c2e5506422 Update to Rust 1.94 2026-06-29 14:27:53 -04:00
Carol (Nichols || Goulding)
e96f1325b1 Update to Rust 1.93 2026-06-29 13:58:29 -04:00
Carol (Nichols || Goulding)
75c7b8aec3 Update to Rust 1.92 2026-06-29 13:50:58 -04:00
Carol (Nichols || Goulding)
282a88dd22 Save and restore the PID now present in panic messages 2026-06-29 13:50:58 -04:00
Carol (Nichols || Goulding)
79b7eaf479 Update to Rust 1.91 2026-06-29 13:28:17 -04:00
Nitesh Yadav
a003110511 Fix grammatical typo in Chapter 17-05 2026-05-16 14:41:27 +05:30
Frank King
05d114287b Temporarily remove the link to Drop::drop 2026-02-03 10:19:04 -05:00
Eric Huss
39aeceaa3a Synchronize TrplNote name
This changes the name of the `TrplNote` mdbook preprocessor so that it
matches the name used in `book.toml`. The reason this needs to be in
sync is that in upstream we use `MDBook::with_preprocessor` to replace
the preprocessor, but unfortunately it grabs the name from the
preprocessor itself. If these are out of sync, it ends up not being able
to replace the old preprocessor config. The API in mdbook should
probably be better to make it easier to manage the config. For now, this
is probably the easiest fix.
2025-12-12 11:02:27 -05:00
Eric Huss
9c9104e8a8 Update to mdbook 0.5
Changelog: https://github.com/rust-lang/mdBook/blob/master/CHANGELOG.md#mdbook-051

This also changes it so that it is not necessary to install
`mbdook-trpl`. This should make it easier to work with the book and the
extension.
2025-12-10 11:33:49 -05:00
cake-duke
8c0eacd5c4 Update ch07-02-defining-modules-to-control-scope-and-privacy.md 2025-11-18 10:36:41 -05:00
Tshepang Mbambo
37c01cbc56 use AND for search terms
The default is OR search, which is less popular (and therefore more surprising) than AND search
2025-11-18 10:33:41 -05:00
Carol (Nichols || Goulding)
f78ab89d75 Consistently use let...else 2025-11-09 22:30:48 -05:00
Carol (Nichols || Goulding)
646355a8c2 Merge branch 'main' into fix-typo-17-02 2025-11-08 18:21:52 -05:00
Carol (Nichols || Goulding)
95dd8a023b Change the hypothetical rand version number to be actually hypothetical
Now that rand 0.9 actually exists 😅 Hopefully version 0.999.0 won't
exist for a while!!

This should address some of the confusion in #4508 and shouldn't need
further updating even as rand's version increases (unless they go to 1.0
😳)
2025-11-08 12:33:26 -05:00
Carol (Nichols || Goulding)
dec931300f Update listing caption to match what's ending up in print 2025-11-08 12:33:26 -05:00
Nikita
3e7aac1d7b Fix minor style inconsistency 2025-11-08 12:11:04 -05:00
Carol (Nichols || Goulding)
747785cad0 Merge remote-tracking branch 'origin/pr/4564' 2025-11-08 11:48:13 -05:00
Carol (Nichols || Goulding)
f6106e9e61 Remove unnecessary adjective 2025-11-08 11:46:23 -05:00
Carol (Nichols || Goulding)
10e91187b8 Fix confusing sentence about let else 2025-11-08 11:44:41 -05:00
Carol (Nichols || Goulding)
06c74327fc Fix confusing sentence about let else 2025-11-08 11:41:42 -05:00
Carol (Nichols || Goulding)
f660f34188 Update to Rust 1.90 2025-10-27 21:41:51 -04:00
Carol (Nichols || Goulding)
6c890c7160 Update to Rust 1.89 2025-10-27 21:21:32 -04:00
Carol (Nichols || Goulding)
c143e8d728 Update to Rust 1.88 2025-10-27 21:00:51 -04:00
Carol (Nichols || Goulding)
3aa68a3411 Update to Rust 1.87 2025-10-27 20:54:50 -04:00
Carol (Nichols || Goulding)
92371d4d36 Update to Rust 1.86 2025-10-27 20:45:32 -04:00
Carol (Nichols || Goulding)
8695fc267f Remove unused subheadings 2025-10-24 11:39:51 -04:00
Carol (Nichols || Goulding)
af415fc6c8 Prepare for renaming of rust-lang/rust default branch 2025-10-20 10:01:39 -04:00
Carol (Nichols || Goulding)
6818718c6b Merge remote-tracking branch 'origin/pr/4387' 2025-10-18 21:56:07 -04:00
Carol (Nichols || Goulding)
984b579c3c Merge remote-tracking branch 'origin/pr/4476' 2025-10-18 21:36:25 -04:00
Carol (Nichols || Goulding)
c3f7e54bf0 Merge branch 'main' into add_vietnamese 2025-10-18 21:30:30 -04:00
cheater
13c4c069af Update CONTRIBUTING.md
Fix typo
2025-10-18 21:23:45 -04:00
nixxo
2a103c67e0 added Italian translation link 2025-10-18 21:17:58 -04:00
Carol (Nichols || Goulding)
121f07a7db Save regenerations of the rest of the nostarch snapshots
Looks like I forgot to save a few; some have weirdnesses i don't care to
special case right now
2025-10-18 21:13:33 -04:00
Carol (Nichols || Goulding)
2c56b53dfb text not rust 2025-10-18 21:13:33 -04:00
Carol (Nichols || Goulding)
a014f0a70f Add urls to the dictionary 2025-10-18 21:13:33 -04:00