mirror of
https://github.com/uutils/coreutils
synced 2024-11-15 01:17:09 +00:00
Fix wc output for bytes
This commit is contained in:
parent
e4b5b8e19c
commit
afabebe432
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ fn print_stats(filename: &str, line_count: uint, word_count: uint, char_count: u
|
|||
print!("{:1$}", word_count, max_str_len);
|
||||
}
|
||||
if matches.opt_present("bytes") {
|
||||
print!("{:1$}", byte_count, max_str_len + 1);
|
||||
print!("{:1$}", byte_count, max_str_len);
|
||||
}
|
||||
if matches.opt_present("chars") {
|
||||
print!("{:1$}", char_count, max_str_len);
|
||||
|
|
Loading…
Reference in a new issue