Skip to content

Commit b8d4bb1

Browse files
authored
Merge pull request #1316 from tklauser/fix-fn-typo
Fix typo in method name
2 parents c684293 + 1b9d4bb commit b8d4bb1

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
@@ -55,7 +55,7 @@ impl RustAnalyzerProject {
5555
/// Parse the exercises folder for .rs files, any matches will create
5656
/// a new `crate` in rust-project.json which allows rust-analyzer to
5757
/// treat it like a normal binary
58-
pub fn exercies_to_json(&mut self) -> Result<(), Box<dyn Error>> {
58+
pub fn exercises_to_json(&mut self) -> Result<(), Box<dyn Error>> {
5959
for e in glob("./exercises/**/*")? {
6060
let path = e?.to_string_lossy().to_string();
6161
self.path_to_json(path);

0 commit comments

Comments
 (0)