Fix typo in cargo search subcommand.
authorVasudev Kamath <vasudev@copyninja.info>
Sun, 15 Apr 2018 06:58:29 +0000 (12:28 +0530)
committerVasudev Kamath <vasudev@copyninja.info>
Sun, 15 Apr 2018 06:58:29 +0000 (12:28 +0530)
Since the search subcommand where typo happened is
also used in test fix the typo in test also.
Last-Update: 2017-10-29

Gbp-Pq: Name 1002_fix_typo_cargo_search.patch

src/bin/search.rs
tests/search.rs

index 23a656c0653bf1f9ba0954cc001f05d8a7b1237b..feee24e002067e4ba2d745652cf58c95c96bfb66 100644 (file)
@@ -70,7 +70,7 @@ pub fn execute(options: Options, config: &mut Config) -> CliResult {
     let msg = "The flag '--host' is no longer valid.
 
 Previous versions of Cargo accepted this flag, but it is being
-depricated. The flag is being renamed to 'index', as the flag
+deprecated. The flag is being renamed to 'index', as the flag
 wants the location of the index in which to search. Please
 use '--index' instead.
 
index 9410ce7e72da4a12af6378e4b8a7ff8f80637f24..b0cde5631b8f84b25024e24b33c200a62825759a 100644 (file)
@@ -140,7 +140,7 @@ fn simple_with_host() {
 [WARNING] The flag '--host' is no longer valid.
 
 Previous versions of Cargo accepted this flag, but it is being
-depricated. The flag is being renamed to 'index', as the flag
+deprecated. The flag is being renamed to 'index', as the flag
 wants the location of the index in which to search. Please
 use '--index' instead.
 
@@ -207,7 +207,7 @@ fn simple_with_index_and_host() {
 [WARNING] The flag '--host' is no longer valid.
 
 Previous versions of Cargo accepted this flag, but it is being
-depricated. The flag is being renamed to 'index', as the flag
+deprecated. The flag is being renamed to 'index', as the flag
 wants the location of the index in which to search. Please
 use '--index' instead.