From 65ad3c5e2194f1295fb0079d9b0da54e1ae941d6 Mon Sep 17 00:00:00 2001 From: archibate <1931127624@qq.com> Date: Thu, 2 Jul 2020 13:14:59 +0800 Subject: [PATCH] fix https://github.com/taichi-dev/taichi/pull/1355#discussion_r448752644 --- taichi/ir/expr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taichi/ir/expr.cpp b/taichi/ir/expr.cpp index 20ea0cd594fbe..62138066fa98f 100644 --- a/taichi/ir/expr.cpp +++ b/taichi/ir/expr.cpp @@ -181,7 +181,7 @@ Expr ptr_if_global(const Expr &var) { // singleton global variable TI_ASSERT_INFO( var.snode()->num_active_indices == 0, - "Please always use 'x[None]' (instead of simply 'x') to access any 0-D tensor." + "Please always use 'x[None]' (instead of simply 'x') to access any 0-D tensor."); return var[ExprGroup()]; } else { // may be any local or global expr