From ef1643660bceb9dac6e4d3865bdd48b87c5dcba2 Mon Sep 17 00:00:00 2001 From: emma Date: Fri, 23 Feb 2024 22:11:23 -0700 Subject: [PATCH] hru(1): fixed lack of newline --- src/hru.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hru.rs b/src/hru.rs index 2540fb8..0e0b25d 100644 --- a/src/hru.rs +++ b/src/hru.rs @@ -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);