From b75e5ee82386ff10ed5e169f641aab51ada03fa4 Mon Sep 17 00:00:00 2001 From: John <153272819+hishope@users.noreply.github.com> Date: Fri, 8 Mar 2024 08:35:41 +0800 Subject: [PATCH] remove repetitive words (#10348) Signed-off-by: hishope --- share/completions/cargo.fish | 2 +- share/completions/opkg.fish | 2 +- share/functions/fish_config.fish | 2 +- src/curses.rs | 2 +- src/wcstringutil.rs | 2 +- src/wildcard.rs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/share/completions/cargo.fish b/share/completions/cargo.fish index c52dda598..239d64169 100644 --- a/share/completions/cargo.fish +++ b/share/completions/cargo.fish @@ -26,7 +26,7 @@ end complete -c cargo -n '__fish_seen_subcommand_from run test build debug check' -l package \ -xa "(__fish_cargo_packages)" -# Look up crates.io crates matching the the single argument provided to this function +# Look up crates.io crates matching the single argument provided to this function function __fish_cargo_search if test (string length -- "$argv[1]") -le 2 # Don't waste time searching for strings with too many results to realistically diff --git a/share/completions/opkg.fish b/share/completions/opkg.fish index 8d2da8724..029a15d2f 100644 --- a/share/completions/opkg.fish +++ b/share/completions/opkg.fish @@ -62,7 +62,7 @@ complete -c opkg -s A -d 'Query all packages not just those installed' complete -c opkg -s V -l verbosity -d 'Set verbosity level to ' complete -c opkg -s f -l conf -d 'Use as the opkg configuration file' complete -c opkg -l cache -d 'Use a package cache' -complete -c opkg -s d -l dest -d 'Use as the the root directory' +complete -c opkg -s d -l dest -d 'Use as the root directory' complete -c opkg -s o -l offline-root -d 'Use as the root directory for offline' complete -c opkg -l add-arch -d 'Register architecture with given priority' complete -c opkg -l add-dest -d 'Register destination with given path' diff --git a/share/functions/fish_config.fish b/share/functions/fish_config.fish index 5e92d342b..88b9b5356 100644 --- a/share/functions/fish_config.fish +++ b/share/functions/fish_config.fish @@ -184,7 +184,7 @@ function fish_config --description "Launch fish's web based configuration" echo -ns (set_color $fish_color_command || set_color $fish_color_normal) Th set_color normal set_color $fish_color_autosuggestion || set_color $fish_color_normal - echo is is an autosuggestion + echo is an autosuggestion echo case show set -l fish (status fish-path) diff --git a/src/curses.rs b/src/curses.rs index aca3f15a1..746727e16 100644 --- a/src/curses.rs +++ b/src/curses.rs @@ -2,7 +2,7 @@ //! that's not directly exposed in any of the popular ncurses crates. //! //! In addition to exposing the C library ffi calls, we also shim around some functionality that's -//! only made available via the the ncurses headers to C code via macro magic, such as polyfilling +//! only made available via the ncurses headers to C code via macro magic, such as polyfilling //! missing capability strings to shoe-in missing support for certain terminal sequences. //! //! This is intentionally very bare bones and only implements the subset of curses functionality diff --git a/src/wcstringutil.rs b/src/wcstringutil.rs index d072b9ef4..02b40f9ff 100644 --- a/src/wcstringutil.rs +++ b/src/wcstringutil.rs @@ -334,7 +334,7 @@ pub fn split_string(val: &wstr, sep: char) -> Vec { /// Note the delimiters are the characters in \p seps, not \p seps itself. /// \p seps may contain the NUL character. /// Do not output more than \p max_results results. If we are to output exactly that much, -/// the last output is the the remainder of the input, including leading delimiters, +/// the last output is the remainder of the input, including leading delimiters, /// except for the first. This is historical behavior. /// Example: split_string_tok(" a b c ", " ", 3) -> {"a", "b", " c "} pub fn split_string_tok<'val>( diff --git a/src/wildcard.rs b/src/wildcard.rs index f814ba973..590b04d10 100644 --- a/src/wildcard.rs +++ b/src/wildcard.rs @@ -36,7 +36,7 @@ pub const ANY_STRING: char = char_offset(WILDCARD_RESERVED_BASE, 1); /// Character representing any character string. pub const ANY_STRING_RECURSIVE: char = char_offset(WILDCARD_RESERVED_BASE, 2); /// This is a special pseudo-char that is not used other than to mark the -/// end of the the special characters so we can sanity check the enum range. +/// end of the special characters so we can sanity check the enum range. pub const ANY_SENTINEL: char = char_offset(WILDCARD_RESERVED_BASE, 3); #[derive(PartialEq)]