doc: upgrade rand dependency to v0.10.1 in book listings and text#4756
Open
falloficaruss wants to merge 2 commits into
Open
doc: upgrade rand dependency to v0.10.1 in book listings and text#4756falloficaruss wants to merge 2 commits into
falloficaruss wants to merge 2 commits into
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Closes #4746