[PATCH hare-clrfmt] printfln,errorfln: call fprintfln instead of fprintf
Export this patch
Signed-off-by: Carlos Une <une@fastmail.fm>
---
clrfmt/clrfmt.ha | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clrfmt/clrfmt.ha b/clrfmt/clrfmt.ha
index d5f7caa..10e66d3 100644
--- a/clrfmt/clrfmt.ha
+++ b/clrfmt/clrfmt.ha
@@ -61,13 +61,13 @@ export fn printf(s: style, c: color, fmt: str, args: fmt::field...) (io::error |
fprintf(s: style, c: color, os::stdout, fmt, args...);
export fn printfln(s: style, c: color, fmt: str, args: fmt::field...) (io::error | size) =
- fprintf(s: style, c: color, os::stdout, fmt, args...);
+ fprintfln(s: style, c: color, os::stdout, fmt, args...);
export fn errorf(s: style, c: color, fmt: str, args: fmt::field...) (io::error | size) =
fprintf(s: style, c: color, os::stderr, fmt, args...);
export fn errorfln(s: style, c: color, fmt: str, args: fmt::field...) (io::error | size) =
- fprintf(s: style, c: color, os::stderr, fmt, args...);
+ fprintfln(s: style, c: color, os::stderr, fmt, args...);
export fn asprintf(s: style, c: color, fmt: str, args: fmt::field...) str = {
let buf = memio::dynamic();
--
2.39.2