Skip to content

Commit 64a8c14

Browse files
authored
builtin: fix the comments about flushing on print/1 and println/1 (#18927)
1 parent 36d45c6 commit 64a8c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vlib/builtin/builtin.c.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ pub fn flush_stderr() {
223223
}
224224
}
225225

226-
// print prints a message to stdout. Unlike `println` stdout is not automatically flushed.
226+
// print prints a message to stdout. Note that unlike `eprint`, stdout is not automatically flushed.
227227
[manualfree]
228228
pub fn print(s string) {
229229
$if android && !termux {
@@ -238,7 +238,7 @@ pub fn print(s string) {
238238
}
239239
}
240240

241-
// println prints a message with a line end, to stdout. stdout is flushed.
241+
// println prints a message with a line end, to stdout. Note that unlike `eprintln`, stdout is not automatically flushed.
242242
[manualfree]
243243
pub fn println(s string) {
244244
if s.str == 0 {

0 commit comments

Comments
 (0)