book
book copied to clipboard
7.2 Paragraph wording is confusing
- I have searched open and closed issues and pull requests for duplicates, using these search terms:
- 7.2
- Ch 7.2
- Typo
URL to the section(s) of the book with this problem:
https://doc.rust-lang.org/book/ch07-01-packages-and-crates.html#packages-and-crates
Description of the problem:
(bold is mine)
A package can contain as many binary crates as you like, but at most only one library crate. A package must contain at least one crate, whether that’s a library or binary crate.
Suggested fix:
(Again bold only to show diff. I am not suggesting it to be bold.)
A package can contain as many binary crates as you like, but at most one library crate. A package must contain at least one crate, whether that’s a library or binary crate.
I think the "only" does not add clarity to the phrase but instead makes it confusing, and harder to read.