Skip to content

Commit

Permalink
expand: clarify tabstops argument name for expand_line
Browse files Browse the repository at this point in the history
  • Loading branch information
clint committed Nov 9, 2023
1 parent fc00b6b commit a29ddea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/uu/expand/src/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,11 @@ enum CharType {
Other,
}

#[allow(clippy::cognitive_complexity)]
fn expand_line(
buf: &mut Vec<u8>,
output: &mut BufWriter<std::io::Stdout>,
ts: &[usize],
tabstops: &[usize],
options: &Options,
) -> std::io::Result<()> {
use self::CharType::*;
Expand Down Expand Up @@ -415,7 +416,7 @@ fn expand_line(
match ctype {
Tab => {
// figure out how many spaces to the next tabstop
let nts = next_tabstop(ts, col, &options.remaining_mode);
let nts = next_tabstop(tabstops, col, &options.remaining_mode);
col += nts;

// now dump out either spaces if we're expanding, or a literal tab if we're not
Expand Down

0 comments on commit a29ddea

Please sign in to comment.