単語を間違えた
This commit is contained in:
parent
7f96e3096c
commit
5e9c7fa37e
1 changed files with 2 additions and 2 deletions
4
wc.rb
4
wc.rb
|
@ -51,10 +51,10 @@ def calculate_max_widths(total_stat)
|
|||
end
|
||||
|
||||
def format_row(stats, max_widths, options)
|
||||
row = %i[lines words bytes].filter_map do |key|
|
||||
columns = %i[lines words bytes].filter_map do |key|
|
||||
stats[key].to_s.rjust(max_widths[key]) if options[key]
|
||||
end
|
||||
[*row, stats[:filename]].join(' ')
|
||||
[*columns, stats[:filename]].join(' ')
|
||||
end
|
||||
|
||||
main
|
||||
|
|
Loading…
Reference in a new issue