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:
parent
4f532c0830
commit
9addede0ea
@ -12,7 +12,7 @@ questions or even make a REPL or an embedded console.
|
|||||||
import readline
|
import readline
|
||||||
|
|
||||||
mut r := readline.Readline{}
|
mut r := readline.Readline{}
|
||||||
answer := r.read_line('hello: ')?
|
answer := r.read_line('hello: ')!
|
||||||
println(answer)
|
println(answer)
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -21,6 +21,6 @@ or just:
|
|||||||
```v
|
```v
|
||||||
import readline { read_line }
|
import readline { read_line }
|
||||||
|
|
||||||
input := read_line('What is your name: ')?
|
input := read_line('What is your name: ')!
|
||||||
println('Your name is: ${input}')
|
println('Your name is: ${input}')
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user