book
book copied to clipboard
The Rust Programming Language
The error message is planning to change after releasing Rust 1.88.0 by this pull request. https://github.com/rust-lang/rust/pull/140056 I believe the book needs to follow the change. Please beware of that the...
i'm getting some weird errors locally; seeing if they happen in CI too or if it's a personal problem
Changed ` let secret_number = rand::thread_rng().gen_range(1..=100);` and gen_range() are depracted since 0.9.0 and should use `let secret_number = rand::rng().random_range(1..=100);` Sources https://docs.rs/rand/latest/rand/fn.thread_rng.html https://docs.rs/rand/latest/rand/trait.Rng.html#method.gen_range
warning: use of deprecated function `rand::thread_rng`: renamed to `rng` --> src/main.rs:7:28 | 7 | let secret_number = rand::thread_rng().gen_range(1..=100); | ^^^^^^^^^^ warning: use of deprecated method `rand::Rng::gen_range`: Renamed to `random_range` -->...
When the chapter 15.3 introduces the drop function we should show the implementation: ```rust pub fn drop(_x: T) {} ``` In my option this helps to better understand the difference...
modified description to include upper and lower bound inclusiveness.
It's better if readers can also see "let (tx, mut rx) = trpl::channel();" in this example to align with others in this chapter. By doing this, beginners will have less...
fixed use of deprecated function