diff options
| author | liv <mokou@fastmail.com> | 2023-01-03 14:19:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-03 14:19:17 +0100 |
| commit | b8d4bb1f1311fcc88a7d097512ced75e4ecfdcf8 (patch) | |
| tree | f2ac52f70b36980599453720b7bf2f00cd68ac8e | |
| parent | c6842938c9fe05ea7dcc48b52750630fe44fc82c (diff) | |
| parent | 1b9d4bbf723b9fc6a4f8fdd7bf10d6b39b3f2f62 (diff) | |
Merge pull request #1316 from tklauser/fix-fn-typo
Fix typo in method name
| -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 a6e3acf..6e48350 100644 --- a/src/project.rs +++ b/src/project.rs @@ -55,7 +55,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); |
