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:
parent
36d45c6d14
commit
64a8c14a3c
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user