Skip to content

Commit a29ddea

Browse files
author
clint
committed
expand: clarify tabstops argument name for expand_line
1 parent fc00b6b commit a29ddea

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎src/uu/expand/src/expand.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,10 +366,11 @@ enum CharType {
366366
Other,
367367
}
368368

369+
#[allow(clippy::cognitive_complexity)]
369370
fn expand_line(
370371
buf: &mut Vec<u8>,
371372
output: &mut BufWriter<std::io::Stdout>,
372-
ts: &[usize],
373+
tabstops: &[usize],
373374
options: &Options,
374375
) -> std::io::Result<()> {
375376
use self::CharType::*;
@@ -415,7 +416,7 @@ fn expand_line(
415416
match ctype {
416417
Tab => {
417418
// figure out how many spaces to the next tabstop
418-
let nts = next_tabstop(ts, col, &options.remaining_mode);
419+
let nts = next_tabstop(tabstops, col, &options.remaining_mode);
419420
col += nts;
420421

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

0 commit comments

Comments
 (0)