From 08c9250ca9a120ed34666fbd358308104aef1f7b Mon Sep 17 00:00:00 2001 From: David Deprost Date: Sat, 4 Mar 2017 18:49:41 +0100 Subject: [PATCH 1/2] Update ch14-03-cargo-workspaces.md Misconstructed sentence. --- second-edition/src/ch14-03-cargo-workspaces.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/second-edition/src/ch14-03-cargo-workspaces.md b/second-edition/src/ch14-03-cargo-workspaces.md index c53ef854a..77cacc0c9 100644 --- a/second-edition/src/ch14-03-cargo-workspaces.md +++ b/second-edition/src/ch14-03-cargo-workspaces.md @@ -123,7 +123,7 @@ $ cargo build Finished debug [unoptimized + debuginfo] target(s) in 10.18 secs ``` -The top level *Cargo.lock* now contains information about the dependency +The top level *Cargo.lock* now contains information that the dependency `add-one` has on `rand`. However, even though `rand` is used somewhere in the workspace, we can't use it in other crates in the workspace unless we add `rand` to their *Cargo.toml* as well. If we add `extern crate rand;` to From d945f6d4046f4fc3c09326213100492790aebb45 Mon Sep 17 00:00:00 2001 From: David Deprost Date: Sun, 5 Mar 2017 10:30:57 +0100 Subject: [PATCH 2/2] Update ch14-03-cargo-workspaces.md Misconstructed sentence fix. --- second-edition/src/ch14-03-cargo-workspaces.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/second-edition/src/ch14-03-cargo-workspaces.md b/second-edition/src/ch14-03-cargo-workspaces.md index 77cacc0c9..57741fe88 100644 --- a/second-edition/src/ch14-03-cargo-workspaces.md +++ b/second-edition/src/ch14-03-cargo-workspaces.md @@ -123,8 +123,8 @@ $ cargo build Finished debug [unoptimized + debuginfo] target(s) in 10.18 secs ``` -The top level *Cargo.lock* now contains information that the dependency -`add-one` has on `rand`. However, even though `rand` is used somewhere in the +The top level *Cargo.lock* now reflects the fact that `add-one` depends +on `rand`. However, even though `rand` is used somewhere in the workspace, we can't use it in other crates in the workspace unless we add `rand` to their *Cargo.toml* as well. If we add `extern crate rand;` to *src/main.rs* for the top level `adder` crate, for example, we'll get an error: