From af7e235665badea6154b2bcafacb46a54df6db7e Mon Sep 17 00:00:00 2001 From: Rikuoh Tsujitani Date: Wed, 24 Jul 2024 21:28:00 +0900 Subject: [PATCH] =?UTF-8?q?=E7=A9=BA=E8=A1=8C=E3=82=92=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wc.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wc.rb b/wc.rb index 7cc5787..97b172f 100644 --- a/wc.rb +++ b/wc.rb @@ -1,4 +1,3 @@ - # frozen_string_literal: true require 'optparse' @@ -21,12 +20,12 @@ def input_stream_sources(input_sources, options) update_totals(total, stats) end max_widths = calculate_max_widths(all_stats, total_stats) - + all_stats.each do |source, stats| result = format_result(stats, max_widths, options) print_result(result, source) end - + print_total(total_stats, max_widths, options) if input_sources.size > 1 end