mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
examples: minor optimization of calculator (#6367)
This commit is contained in:
parent
a984f9cf97
commit
11f10fdce2
1 changed files with 1 additions and 2 deletions
|
@ -117,8 +117,7 @@ fn main() {
|
|||
mut expr_count := 0
|
||||
for {
|
||||
expr_count++
|
||||
print('[$expr_count] ')
|
||||
expr := os.get_line().trim_space()
|
||||
expr := os.input('[$expr_count] ').trim_space()
|
||||
if expr in ['exit', 'EXIT'] {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue