Fix typo in method name

This commit is contained in:
Tobias Klauser 2023-01-03 14:14:07 +01:00
parent 49bbeeefae
commit 1b9d4bbf72
No known key found for this signature in database
GPG key ID: 6F5040074CCC0D04
2 changed files with 2 additions and 2 deletions

View file

@ -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() {

View file

@ -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);