about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-08-03 18:51:51 +0000
committerbors <bors@rust-lang.org>2024-08-03 18:51:51 +0000
commit377d72ae8b74d31301f40cbe0bd110bf1e01ccec (patch)
treeebb016d62c74183f9c7ad0ade2ed85414708db04
parent8dd459d4c750dbf200bbd48a10f129b1401e7bf3 (diff)
parentb9716dd32a2412243770c10e7172dd417361cb8f (diff)
downloadrust-377d72ae8b74d31301f40cbe0bd110bf1e01ccec.tar.gz
rust-377d72ae8b74d31301f40cbe0bd110bf1e01ccec.zip
Auto merge of #13194 - sheshnath-at-knoldus:fix-typos, r=Jarcho
fix-typos

fixes some typos in lintcheck

changelog: None
-rw-r--r--lintcheck/src/input.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lintcheck/src/input.rs b/lintcheck/src/input.rs
index 3b263674aa8..3383d50fa02 100644
--- a/lintcheck/src/input.rs
+++ b/lintcheck/src/input.rs
@@ -98,12 +98,12 @@ pub fn read_crates(toml_path: &Path) -> (Vec<CrateWithSource>, RecursiveOptions)
     let crate_list: SourceList =
         toml::from_str(&toml_content).unwrap_or_else(|e| panic!("Failed to parse {}: \n{e}", toml_path.display()));
     // parse the hashmap of the toml file into a list of crates
-    let tomlcrates: Vec<TomlCrate> = crate_list.crates.into_values().collect();
+    let toml_crates: Vec<TomlCrate> = crate_list.crates.into_values().collect();
 
     // flatten TomlCrates into CrateSources (one TomlCrates may represent several versions of a crate =>
-    // multiple Cratesources)
+    // multiple CrateSources)
     let mut crate_sources = Vec::new();
-    for tk in tomlcrates {
+    for tk in toml_crates {
         if let Some(ref path) = tk.path {
             crate_sources.push(CrateWithSource {
                 name: tk.name.clone(),