Print the byte unit once in the summary line (closes #17) #20

Merged
clawbot merged 1 commits from summary-byte-unit into next 2026-10-06 08:27:08 +02:00
1 Commits
Author SHA1 Message Date
sneak 3f9f150736 Print the byte unit once in the summary line (closes #17)
check / check (push) Successful in 3m2s
formatBytes already ends in a unit, so the summary line read "9 B
bytes" or "1.0 KiB bytes". The format string in Stats.Print no longer
adds the word "bytes".

Print now takes the io.Writer to print to; its callers pass os.Stderr,
and the new test passes a buffer to read the line for one small and
one large byte count.

Model: opus-5-5
2026-10-06 06:00:11 +00:00