Skip to content

Commit

Permalink
Auto merge of #10244 - joshtriplett:tyop, r=ehuss
Browse files Browse the repository at this point in the history
Fix typo: substract -> subtract
  • Loading branch information
bors committed Jan 2, 2022
2 parents 5b3a8c5 + 64439ce commit 68ea4c0
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 68ea4c0

Please sign in to comment.