From afabebe4324f327a72bbf89b5c0df63b3e1628ca Mon Sep 17 00:00:00 2001 From: Arcterus Date: Sat, 27 Sep 2014 15:24:10 -0700 Subject: [PATCH] Fix wc output for bytes --- src/wc/wc.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wc/wc.rs b/src/wc/wc.rs index d1e83d50a..d5f616cff 100644 --- a/src/wc/wc.rs +++ b/src/wc/wc.rs @@ -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);