mirror of
https://github.com/rust-lang/rustlings.git
synced 2024-12-27 00:00:03 +03:00
Merge pull request #1316 from tklauser/fix-fn-typo
Fix typo in method name
This commit is contained in:
commit
b8d4bb1f13
|
@ -239,7 +239,7 @@ fn main() {
|
||||||
.get_sysroot_src()
|
.get_sysroot_src()
|
||||||
.expect("Couldn't find toolchain path, do you have `rustc` installed?");
|
.expect("Couldn't find toolchain path, do you have `rustc` installed?");
|
||||||
project
|
project
|
||||||
.exercies_to_json()
|
.exercises_to_json()
|
||||||
.expect("Couldn't parse rustlings exercises files");
|
.expect("Couldn't parse rustlings exercises files");
|
||||||
|
|
||||||
if project.crates.is_empty() {
|
if project.crates.is_empty() {
|
||||||
|
|
|
@ -55,7 +55,7 @@ impl RustAnalyzerProject {
|
||||||
/// Parse the exercises folder for .rs files, any matches will create
|
/// Parse the exercises folder for .rs files, any matches will create
|
||||||
/// a new `crate` in rust-project.json which allows rust-analyzer to
|
/// a new `crate` in rust-project.json which allows rust-analyzer to
|
||||||
/// treat it like a normal binary
|
/// 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/**/*")? {
|
for e in glob("./exercises/**/*")? {
|
||||||
let path = e?.to_string_lossy().to_string();
|
let path = e?.to_string_lossy().to_string();
|
||||||
self.path_to_json(path);
|
self.path_to_json(path);
|
||||||
|
|
Loading…
Reference in a new issue