Skip to content

Commit

Permalink
Small tweaks for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Jan 4, 2024
1 parent 4d4cc4e commit dc840ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/soroban-cli/src/commands/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ fn copy_example_contracts(
std::fs::create_dir_all(&to_contract_path)?;

copy_contents(&from_contract_path, &to_contract_path)?;
edit_cargo_file(&to_contract_path)?;
edit_contract_cargo_file(&to_contract_path)?;
}

Ok(())
}

fn edit_cargo_file(contract_path: &Path) -> Result<(), Error> {
fn edit_contract_cargo_file(contract_path: &Path) -> Result<(), Error> {
let cargo_path = contract_path.join("Cargo.toml");
let cargo_toml_str = read_to_string(&cargo_path)?;
let mut doc = cargo_toml_str.parse::<Document>().unwrap();
Expand Down

0 comments on commit dc840ed

Please sign in to comment.