From 4438a5453b41727c7caabbc6dc127b60af64f456 Mon Sep 17 00:00:00 2001 From: cui fliter Date: Fri, 29 Dec 2023 11:57:56 +0800 Subject: [PATCH] Remove repetitive words Signed-off-by: cui fliter --- credential/cargo-credential/examples/stdout-redirected.rs | 2 +- credential/cargo-credential/tests/examples.rs | 2 +- src/cargo/sources/registry/mod.rs | 2 +- src/doc/src/reference/specifying-dependencies.md | 2 +- tests/testsuite/global_cache_tracker.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/credential/cargo-credential/examples/stdout-redirected.rs b/credential/cargo-credential/examples/stdout-redirected.rs index fb7c0446cf85..371ceabdf6db 100644 --- a/credential/cargo-credential/examples/stdout-redirected.rs +++ b/credential/cargo-credential/examples/stdout-redirected.rs @@ -15,7 +15,7 @@ impl Credential for MyCredential { _args: &[&str], ) -> Result { // Informational messages should be sent on stderr. - eprintln!("message on stderr should be sent the the parent process"); + eprintln!("message on stderr should be sent the parent process"); // Reading from stdin and writing to stdout will go to the attached console (tty). println!("message from test credential provider"); diff --git a/credential/cargo-credential/tests/examples.rs b/credential/cargo-credential/tests/examples.rs index 87fdb8de3b4b..68249920f8c5 100644 --- a/credential/cargo-credential/tests/examples.rs +++ b/credential/cargo-credential/tests/examples.rs @@ -15,7 +15,7 @@ fn stdout_redirected() { .arg("--cargo-plugin") .assert() .stdout_eq(format!("{hello}\n{err_not_supported}\n")) - .stderr_eq("message on stderr should be sent the the parent process\n") + .stderr_eq("message on stderr should be sent the parent process\n") .success(); } diff --git a/src/cargo/sources/registry/mod.rs b/src/cargo/sources/registry/mod.rs index 5bdd71e7d980..da5c9d3f0652 100644 --- a/src/cargo/sources/registry/mod.rs +++ b/src/cargo/sources/registry/mod.rs @@ -328,7 +328,7 @@ pub enum LoadResponse { NotFound, } -/// An abstract interface to handle both a local and and remote registry. +/// An abstract interface to handle both a local and remote registry. /// /// This allows [`RegistrySource`] to abstractly handle each registry kind. /// diff --git a/src/doc/src/reference/specifying-dependencies.md b/src/doc/src/reference/specifying-dependencies.md index c9e1e4f93621..bdede1e1d32d 100644 --- a/src/doc/src/reference/specifying-dependencies.md +++ b/src/doc/src/reference/specifying-dependencies.md @@ -127,7 +127,7 @@ separated with a comma, e.g., `>= 1.2, < 1.5`. > (e.g. only uses a simple type that hasn't changed between releases, like an `Id`) > may support users choosing which version of the "public dependency" to use. > In this case, a version requirement like `">=0.4, <2"` may be of interest. -> *However* users of the package will likely run into errors and need to to +> *However* users of the package will likely run into errors and need to > manually select a version of the "public dependency" via `cargo update` if > they also depend on it as Cargo might pick different versions of the "public > dependency" when [resolving dependency versions](resolver.md) (see diff --git a/tests/testsuite/global_cache_tracker.rs b/tests/testsuite/global_cache_tracker.rs index 68a606902d13..77c443f72fe8 100644 --- a/tests/testsuite/global_cache_tracker.rs +++ b/tests/testsuite/global_cache_tracker.rs @@ -444,7 +444,7 @@ fn auto_gc_index() { fn auto_gc_git() { // auto-gc should delete git checkouts and dbs. - // Returns the short git name of a a checkout. + // Returns the short git name of a checkout. let short_id = |repo: &git2::Repository| -> String { let head = repo.revparse_single("HEAD").unwrap(); let short_id = head.short_id().unwrap();