book icon indicating copy to clipboard operation
book copied to clipboard

7.2 Paragraph wording is confusing

Open iampi31415 opened this issue 5 months ago • 3 comments

  • 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.

iampi31415 avatar May 19 '25 13:05 iampi31415