Fix typo in cargo search subcommand.
authorVasudev Kamath <vasudev@copyninja.info>
Sat, 27 Jan 2018 09:41:06 +0000 (15:11 +0530)
committerXimin Luo <infinity0@debian.org>
Sat, 27 Jan 2018 09:41:06 +0000 (15:11 +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 70b38ecfbfd8a6d22b1b8282141538bea217ee71..c30afc11a8f70a9b797d690b5b261b2656e838b4 100644 (file)
@@ -69,7 +69,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.