examples: update mini_calculator.v (#8182)

pull/8188/head^2
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
1 changed files with 1 additions and 1 deletions

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