mirror of
https://github.com/rust-lang/book.git
synced 2026-12-03 06:15:06 -06:00
Reword number of library crates a package contains
Previous wording is confusing because 1. "zero or one" and "no more" are redundant. 2. "must" and "zero or one" are contradictory. If one is not required, why is there a "must"?
This commit is contained in:
@@ -8,8 +8,8 @@ Privacy”][modules]<!-- ignore --> section). A *package* is one or more crates
|
||||
that provide a set of functionality. A package contains a *Cargo.toml* file
|
||||
that describes how to build those crates.
|
||||
|
||||
Several rules determine what a package can contain. A package *must* contain
|
||||
zero or one library crates, and no more. It can contain as many binary crates
|
||||
Several rules determine what a package can contain. A package can contain
|
||||
at most one library crate. It can contain as many binary crates
|
||||
as you’d like, but it must contain at least one crate (either library or
|
||||
binary).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user