From 60d3cff317c5c859c789c4f1a7cf38747218902b Mon Sep 17 00:00:00 2001 From: Vivien Maisonneuve Date: Mon, 21 Oct 2024 15:32:36 +0200 Subject: [PATCH] swap methods --- clap_complete/src/env/shells.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/clap_complete/src/env/shells.rs b/clap_complete/src/env/shells.rs index 766387aa1e98..5600927d9c93 100644 --- a/clap_complete/src/env/shells.rs +++ b/clap_complete/src/env/shells.rs @@ -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('\\', "\\\\") + } }