diff options
| author | Tobias Klauser <tklauser@distanz.ch> | 2023-01-03 14:14:07 +0100 |
|---|---|---|
| committer | Tobias Klauser <tklauser@distanz.ch> | 2023-01-03 14:14:07 +0100 |
| commit | 1b9d4bbf723b9fc6a4f8fdd7bf10d6b39b3f2f62 (patch) | |
| tree | 5c25365453ced540f43761e8a4187fa100820c4b /src | |
| parent | 49bbeeefaee9e65dec141d6177589481d3e0fd58 (diff) | |
Fix typo in method name
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 2 | ||||
| -rw-r--r-- | src/project.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index 6dc18e8..7e9156f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -239,7 +239,7 @@ fn main() { .get_sysroot_src() .expect("Couldn't find toolchain path, do you have `rustc` installed?"); project - .exercies_to_json() + .exercises_to_json() .expect("Couldn't parse rustlings exercises files"); if project.crates.is_empty() { diff --git a/src/project.rs b/src/project.rs index 0df00b9..f093cdf 100644 --- a/src/project.rs +++ b/src/project.rs @@ -54,7 +54,7 @@ impl RustAnalyzerProject { /// Parse the exercises folder for .rs files, any matches will create /// a new `crate` in rust-project.json which allows rust-analyzer to /// treat it like a normal binary - pub fn exercies_to_json(&mut self) -> Result<(), Box<dyn Error>> { + pub fn exercises_to_json(&mut self) -> Result<(), Box<dyn Error>> { for e in glob("./exercises/**/*")? { let path = e?.to_string_lossy().to_string(); self.path_to_json(path); |
