From e5b990691ec6902704a7df94d4b4cb2ebefa5cde Mon Sep 17 00:00:00 2001 From: Pierre Curto Date: Thu, 21 Sep 2023 17:02:28 +0200 Subject: [PATCH] std::lib::io: make printn_gen discardable Signed-off-by: Pierre Curto --- lib/std/io/stream.c3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/io/stream.c3 b/lib/std/io/stream.c3 index c61eb6b92..d80fd8e3a 100644 --- a/lib/std/io/stream.c3 +++ b/lib/std/io/stream.c3 @@ -144,7 +144,7 @@ macro usz! print_gen(self, x) $endswitch } -macro usz! printn_gen(self, x) +macro usz! printn_gen(self, x) @maydiscard { usz len = print_gen(self, x)!; self.write_byte('\n')!;