From a3eb31fab498453b626613c420179ce7b8a72b9e Mon Sep 17 00:00:00 2001 From: hi-rustin Date: Sun, 20 Nov 2022 18:14:17 +0800 Subject: [PATCH] Fix typo `try use` -> `try to use` Signed-off-by: hi-rustin --- src/cargo/ops/tree/mod.rs | 2 +- tests/testsuite/tree.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cargo/ops/tree/mod.rs b/src/cargo/ops/tree/mod.rs index 14c5509b313..02459f78f43 100644 --- a/src/cargo/ops/tree/mod.rs +++ b/src/cargo/ops/tree/mod.rs @@ -217,7 +217,7 @@ pub fn build_and_print(ws: &Workspace<'_>, opts: &TreeOptions) -> CargoResult<() ws.config().shell().warn( "nothing to print.\n\n\ To find dependencies that require specific target platforms, \ - try use option `--target all` first, and then narrow your search scope accordingly.", + try to use option `--target all` first, and then narrow your search scope accordingly.", )?; } else { print(ws.config(), opts, root_indexes, &pkgs_to_prune, &graph)?; diff --git a/tests/testsuite/tree.rs b/tests/testsuite/tree.rs index 4d3aee4fcb9..c3c1ca6d309 100644 --- a/tests/testsuite/tree.rs +++ b/tests/testsuite/tree.rs @@ -531,7 +531,7 @@ foo v0.1.0 ([..]/foo) [WARNING] nothing to print. To find dependencies that require specific target platforms, \ -try use option `--target all` first, and then narrow your search scope accordingly. +try to use option `--target all` first, and then narrow your search scope accordingly. ", ) .run();