mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
readline: README.md change '?' to '!' (#17868)
This commit is contained in:
parent
4f532c0830
commit
9addede0ea
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue