Skip to content

Commit

Permalink
Fix typo: substract -> subtract
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtriplett committed Jan 2, 2022
1 parent 5b3a8c5 commit 64439ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/cargo/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ pub fn main(config: &mut Config) -> CliResult {
.iter()
.map(|(option_name, option_help_message)| {
let option_name_kebab_case = option_name.replace("_", "-");
let padding = " ".repeat(longest_option - option_name.len()); // safe to substract
let padding = " ".repeat(longest_option - option_name.len()); // safe to subtract
format!(
" -Z {}{} -- {}",
option_name_kebab_case, padding, option_help_message
Expand Down

0 comments on commit 64439ce

Please sign in to comment.