Skip to content

Commit

Permalink
os: update doc comment for input_opt return (#19223)
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm authored Aug 27, 2023
1 parent adf10f8 commit 981ff19
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 981ff19

Please sign in to comment.