From 64a8c14a3ca24f07979976d854c1cecfca6a85e1 Mon Sep 17 00:00:00 2001 From: Kim Shrier Date: Fri, 21 Jul 2023 09:44:13 -0600 Subject: [PATCH] builtin: fix the comments about flushing on `print/1` and `println/1` (#18927) --- vlib/builtin/builtin.c.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/builtin/builtin.c.v b/vlib/builtin/builtin.c.v index c87cf40241..c8d2113499 100644 --- a/vlib/builtin/builtin.c.v +++ b/vlib/builtin/builtin.c.v @@ -223,7 +223,7 @@ pub fn flush_stderr() { } } -// print prints a message to stdout. Unlike `println` stdout is not automatically flushed. +// print prints a message to stdout. Note that unlike `eprint`, stdout is not automatically flushed. [manualfree] pub fn print(s string) { $if android && !termux { @@ -238,7 +238,7 @@ pub fn print(s string) { } } -// println prints a message with a line end, to stdout. stdout is flushed. +// println prints a message with a line end, to stdout. Note that unlike `eprintln`, stdout is not automatically flushed. [manualfree] pub fn println(s string) { if s.str == 0 {