Skip to content

Commit

Permalink
swap methods
Browse files Browse the repository at this point in the history
  • Loading branch information
vivienm committed Oct 21, 2024
1 parent 334a742 commit 60d3cff
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions clap_complete/src/env/shells.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,13 @@ compdef _clap_dynamic_completer_NAME BIN"#
}

impl Zsh {
/// Escape help string
fn escape_help(string: &str) -> String {
string.replace('\\', "\\\\")
}

/// Escape value string
fn escape_value(string: &str) -> String {
string.replace('\\', "\\\\").replace(':', "\\:")
}

/// Escape help string
fn escape_help(string: &str) -> String {
string.replace('\\', "\\\\")
}
}

0 comments on commit 60d3cff

Please sign in to comment.