1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin: fix the comments about flushing on print/1 and println/1 (#18927)

This commit is contained in:
Kim Shrier 2023-07-21 09:44:13 -06:00 committed by GitHub
parent 36d45c6d14
commit 64a8c14a3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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] [manualfree]
pub fn print(s string) { pub fn print(s string) {
$if android && !termux { $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] [manualfree]
pub fn println(s string) { pub fn println(s string) {
if s.str == 0 { if s.str == 0 {