1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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}')
```