From 3efbb20a327b1d47b2d4f301a391fa5eb14ce14a Mon Sep 17 00:00:00 2001 From: lelelemr <130736717+lelelemr@users.noreply.github.com> Date: Fri, 21 Nov 2025 17:56:49 +0800 Subject: [PATCH] =?UTF-8?q?Correct=20cargo=20test=20command=20for=20worksp?= =?UTF-8?q?ace(lan:=20Chinece(=E4=B8=AD=E6=96=87=E7=AE=80=E4=BD=93))?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the command to run tests in a Cargo workspace.(lan: Chinece(中文简体)) --- src/ch14-03-cargo-workspaces.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ch14-03-cargo-workspaces.md b/src/ch14-03-cargo-workspaces.md index 8a675e5..b846f87 100644 --- a/src/ch14-03-cargo-workspaces.md +++ b/src/ch14-03-cargo-workspaces.md @@ -192,7 +192,7 @@ error[E0432]: unresolved import `rand` {{#rustdoc_include ../listings/ch14-more-about-cargo/no-listing-04-workspace-with-tests/add/add_one/src/lib.rs}} ``` -在顶级 *add* 目录运行 `cargo test`。在像这样的工作空间结构中运行 `cargo test` 会运行工作空间中所有 crate 的测试。: +在顶级 *add* 目录运行 `cargo test --workspace`。在像这样的工作空间结构中运行 `cargo test --workspace` 会运行工作空间中所有 crate 的测试。: ```console $ cargo test