Skip to content

Commit

Permalink
os: update doc comment for input_opt return (vlang#19223)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored and Wertzui123 committed Oct 8, 2023
1 parent 0d8b0f7 commit 48cc830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/os/os.v
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ pub fn file_name(opath string) string {
}

// 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 {
print(prompt)
flush()
Expand Down

0 comments on commit 48cc830

Please sign in to comment.