cognitive-engineering-lab / rust-book

The Rust Programming Language: Experimental Edition
https://rust-book.cs.brown.edu
Other
504 stars 82 forks source link

7.1 #143

Closed wenchnoob closed 7 months ago

wenchnoob commented 7 months ago

URL to the section(s) of the book with this problem: https://github.com/cognitive-engineering-lab/rust-book/blob/main/src/ch07-01-packages-and-crates.md#:~:text=A%20package%20can%20contain%20as%20many%20binary%20crates%20as%20you%20like%2C%20but%20at%20most%20only%20one%20library%20crate.%20A%20package%20must%20contain%20at%20least%20one%20crate%2C%20whether%20that%E2%80%99s%20a%20library%20or%20binary%20crate.

Description of the problem: I am unfamiliar with rust, but this explanation seems atypical: "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: Please confirm and update if needed.