This commit is contained in:
mo8it 2024-04-16 03:18:06 +02:00
parent df448c069c
commit c07cf5bffe

View File

@ -20,7 +20,7 @@ pub fn init() -> Result<()> {
.context("Failed to create the file `rustlings/info.toml`")?; .context("Failed to create the file `rustlings/info.toml`")?;
fs::write( fs::write(
"rustligns/Cargo.toml", "rustlings/Cargo.toml",
format!("{CARGO_TOML_COMMENT}{}", crate::init::CARGO_TOML_PACKAGE), format!("{CARGO_TOML_COMMENT}{}", crate::init::CARGO_TOML_PACKAGE),
) )
.context("Failed to create the file `rustlings/Cargo.toml`")?; .context("Failed to create the file `rustlings/Cargo.toml`")?;
@ -32,7 +32,7 @@ pub fn init() -> Result<()> {
.context("Failed to create the file `rustlings/README.md`")?; .context("Failed to create the file `rustlings/README.md`")?;
create_dir("rustlings/.vscode") create_dir("rustlings/.vscode")
.context("Failed to create the directory `rustligns/.vscode`")?; .context("Failed to create the directory `rustlings/.vscode`")?;
fs::write( fs::write(
"rustlings/.vscode/extensions.json", "rustlings/.vscode/extensions.json",
crate::init::VS_CODE_EXTENSIONS_JSON, crate::init::VS_CODE_EXTENSIONS_JSON,