Skip to content

Commit 1b9d4bb

Browse files
committed
Fix typo in method name
1 parent 49bbeee commit 1b9d4bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ fn main() {
239239
.get_sysroot_src()
240240
.expect("Couldn't find toolchain path, do you have `rustc` installed?");
241241
project
242-
.exercies_to_json()
242+
.exercises_to_json()
243243
.expect("Couldn't parse rustlings exercises files");
244244

245245
if project.crates.is_empty() {

src/project.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ impl RustAnalyzerProject {
5454
/// Parse the exercises folder for .rs files, any matches will create
5555
/// a new `crate` in rust-project.json which allows rust-analyzer to
5656
/// treat it like a normal binary
57-
pub fn exercies_to_json(&mut self) -> Result<(), Box<dyn Error>> {
57+
pub fn exercises_to_json(&mut self) -> Result<(), Box<dyn Error>> {
5858
for e in glob("./exercises/**/*")? {
5959
let path = e?.to_string_lossy().to_string();
6060
self.path_to_json(path);

0 commit comments

Comments
 (0)