mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib: update doc comments (#19231)
This commit is contained in:
parent
78c34326f1
commit
f755118e7c
13 changed files with 22 additions and 20 deletions
|
@ -288,7 +288,7 @@ pub fn input_opt(prompt string) ?string {
|
|||
}
|
||||
|
||||
// input returns a one-line string from stdin, after printing a prompt.
|
||||
// In the event of error (end of input), it returns '<EOF>'.
|
||||
// Returns '<EOF>' in case of an error (end of input).
|
||||
pub fn input(prompt string) string {
|
||||
res := input_opt(prompt) or { return '<EOF>' }
|
||||
return res
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue