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

examples: update mini_calculator.v (#8182)

This commit is contained in:
Sun Junyi 2021-01-19 00:40:47 +08:00 committed by GitHub
parent 6f1ae65811
commit 048d8edf62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ fn expr_to_rev_pol(expr string) ?[]string {
stack << expr[pos..end_pos] stack << expr[pos..end_pos]
pos = end_pos pos = end_pos
} else if end_pos == pos { } else if end_pos == pos {
op := expr[pos].str() op := expr[pos].ascii_str()
match op { match op {
'(' { '(' {
stack << op stack << op