~blainsmith/public-inbox

hare-clrfmt: printfln,errorfln: call fprintfln instead of fprintf v1 APPLIED

Carlos Une: 1
 printfln,errorfln: call fprintfln instead of fprintf

 1 files changed, 2 insertions(+), 2 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~blainsmith/public-inbox/patches/46896/mbox | git am -3
Learn more about email & git

[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