readline: README.md change '?' to '!' (#17868)

This commit is contained in:
l-33ter 2023-04-04 01:51:30 +02:00 committed by GitHub
parent 4f532c0830
commit 9addede0ea
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ questions or even make a REPL or an embedded console.
import readline
mut r := readline.Readline{}
answer := r.read_line('hello: ')?
answer := r.read_line('hello: ')!
println(answer)
```
@ -21,6 +21,6 @@ or just:
```v
import readline { read_line }
input := read_line('What is your name: ')?
input := read_line('What is your name: ')!
println('Your name is: ${input}')
```