From 6f13c466d2a705fcb332b00f0d895f56d4942326 Mon Sep 17 00:00:00 2001 From: cuishuang Date: Sun, 8 May 2022 01:07:28 +0800 Subject: [PATCH] fix some typos Signed-off-by: cuishuang --- tests/testsuite/cargo_command.rs | 2 +- tests/testsuite/config.rs | 4 ++-- tests/testsuite/future_incompat_report.rs | 2 +- tests/testsuite/pkgid.rs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/testsuite/cargo_command.rs b/tests/testsuite/cargo_command.rs index 3fd4badcc62..3190e8eafbc 100644 --- a/tests/testsuite/cargo_command.rs +++ b/tests/testsuite/cargo_command.rs @@ -162,7 +162,7 @@ error: no such subcommand: `C` } #[cargo_test] -fn find_closest_captial_b_to_b() { +fn find_closest_capital_b_to_b() { cargo_process("B") .with_status(101) .with_stderr_contains( diff --git a/tests/testsuite/config.rs b/tests/testsuite/config.rs index c3c61a868ea..4353ffcecd2 100644 --- a/tests/testsuite/config.rs +++ b/tests/testsuite/config.rs @@ -47,7 +47,7 @@ impl ConfigBuilder { self } - /// Unconditionaly enable nightly features, even on stable channels. + /// Unconditionally enable nightly features, even on stable channels. pub fn nightly_features_allowed(&mut self, allowed: bool) -> &mut Self { self.enable_nightly_features = allowed; self @@ -1128,7 +1128,7 @@ unstable.print-im-a-teapot = true } #[cargo_test] -/// Assert that atempting to set an unstable flag that doesn't exist via config +/// Assert that attempting to set an unstable flag that doesn't exist via config /// is ignored on stable fn unstable_invalid_flag_ignored_on_stable() { write_config( diff --git a/tests/testsuite/future_incompat_report.rs b/tests/testsuite/future_incompat_report.rs index bd6e443b686..cf398cde42b 100644 --- a/tests/testsuite/future_incompat_report.rs +++ b/tests/testsuite/future_incompat_report.rs @@ -111,7 +111,7 @@ fn test_single_crate() { write_config_toml(""); check_has_future_compat(); - // Check that we show a message with `frequence = "always"` + // Check that we show a message with `frequency = "always"` write_config_toml( "\ [future-incompat-report] diff --git a/tests/testsuite/pkgid.rs b/tests/testsuite/pkgid.rs index 8f2c2c4a765..3e3e4692a63 100644 --- a/tests/testsuite/pkgid.rs +++ b/tests/testsuite/pkgid.rs @@ -111,7 +111,7 @@ Caused by: ) .run(); - // Bad file URL with simliar name. + // Bad file URL with similar name. p.cargo("pkgid './cratesio'") .with_status(101) .with_stderr(