From 55c0582c4e2bc87804f80f4cb7fb0fe91d5a62bb Mon Sep 17 00:00:00 2001 From: Akhil Indurti Date: Sat, 5 Jun 2021 18:32:32 -0400 Subject: [PATCH] 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"? --- src/ch07-01-packages-and-crates.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ch07-01-packages-and-crates.md b/src/ch07-01-packages-and-crates.md index a24b608f4..729272612 100644 --- a/src/ch07-01-packages-and-crates.md +++ b/src/ch07-01-packages-and-crates.md @@ -8,8 +8,8 @@ Privacy”][modules] 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).