mirror of
https://github.com/vlang/v.git
synced 2025-09-17 11:26:17 -04:00
os: update doc comment for input_opt
return (#19223)
This commit is contained in:
parent
adf10f88cf
commit
981ff192e4
@ -276,7 +276,7 @@ pub fn file_name(opath string) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// input_opt returns a one-line string from stdin, after printing a prompt.
|
// input_opt returns a one-line string from stdin, after printing a prompt.
|
||||||
// In the event of error (end of input), it returns `none`.
|
// Returns `none` in case of an error (end of input).
|
||||||
pub fn input_opt(prompt string) ?string {
|
pub fn input_opt(prompt string) ?string {
|
||||||
print(prompt)
|
print(prompt)
|
||||||
flush()
|
flush()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user