book
book copied to clipboard
The Rust Programming Language
I add comment that display the result so the newbie will have an idea of the result
## Fix 1: **Ch 5 -> 5.1. Defining and Instantiating Structs** The current version of this chapter reads that structs and tuples "both hold multiple related values." This language excludes...
In Chapter 7 of rustbook, Section 7.2 -> `Modules Cheat Sheet` -> `Declaring modules:`, the preference of the compiler for module declarations is clearly defined. However, when I tried experimenting...
I think that, for example, the string `" word1 word2"` counts as "string of words separated by spaces", therefore I added a small clarification to the input requirements of the...
This PR enhances clarity in the "Integer Literals" documentation section by: 1. Acknowledging the intentional shift from "integer literals" to "number literals" 2. Explicitly connecting numeric literal features to floating-point...
Avoid absolutes. No need to quantify this either, it's like saying "very pregnant," haha. (Are writing edits like this welcomed? A test.)
Listing `17-11` looks like this currently: ```rust let tx_fut = async { let vals = vec![ String::from("hi"), String::from("from"), String::from("the"), String::from("future"), ]; for val in vals { tx.send(val).unwrap(); trpl::sleep(Duration::from_millis(500)).await; } };...
Fix typo in title
- I have searched open and closed issues and pull requests for duplicates, using these search terms: - 17.1 - iterators - I have checked the latest `main` branch to...