hru(1): fixed lack of newline

This commit is contained in:
Emma Tebibyte 2024-02-23 22:11:23 -07:00
parent bd08ef479c
commit ef1643660b
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -96,7 +96,7 @@ fn main() -> ExitCode {
let out = ((number * 10.0).round() / 10.0).to_string();
stdout().write_all(format!("{} {}", out, si_prefix).as_bytes())
stdout().write_all(format!("{} {}\n", out, si_prefix).as_bytes())
.unwrap_or_else(|e| {
eprintln!("{}: {}.", argv[0], e);
exit(EX_IOERR);