From 048d8edf62051e76bef5c4f37e84d8aa109569d0 Mon Sep 17 00:00:00 2001 From: Sun Junyi Date: Tue, 19 Jan 2021 00:40:47 +0800 Subject: [PATCH] examples: update mini_calculator.v (#8182) --- examples/mini_calculator.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/mini_calculator.v b/examples/mini_calculator.v index 18f5c2743a..5f79f9d476 100644 --- a/examples/mini_calculator.v +++ b/examples/mini_calculator.v @@ -23,7 +23,7 @@ fn expr_to_rev_pol(expr string) ?[]string { stack << expr[pos..end_pos] pos = end_pos } else if end_pos == pos { - op := expr[pos].str() + op := expr[pos].ascii_str() match op { '(' { stack << op