Skip to content

Commit 9addede

Browse files
authored
readline: README.md change '?' to '!' (#17868)
1 parent 4f532c0 commit 9addede

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

vlib/readline/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ questions or even make a REPL or an embedded console.
1212
import readline
1313
1414
mut r := readline.Readline{}
15-
answer := r.read_line('hello: ')?
15+
answer := r.read_line('hello: ')!
1616
println(answer)
1717
```
1818

@@ -21,6 +21,6 @@ or just:
2121
```v
2222
import readline { read_line }
2323
24-
input := read_line('What is your name: ')?
24+
input := read_line('What is your name: ')!
2525
println('Your name is: ${input}')
2626
```

0 commit comments

Comments
 (0)