Fix typo in err msg (#4251)
authorXFPlus <xfly.plus@gmail.com>
Mon, 4 Nov 2019 16:03:42 +0000 (00:03 +0800)
committerTianqi Chen <tqchen@users.noreply.github.com>
Mon, 4 Nov 2019 16:03:42 +0000 (08:03 -0800)
src/relay/pass/type_infer.cc

index c1d1a66..bc84bdd 100644 (file)
@@ -315,7 +315,7 @@ class TypeInferencer : private ExprFunctor<Type(const Expr&)>,
         ss << "match expression does not handle the following cases: ";
         int i = 0;
         for (auto cs : unmatched_cases) {
-          ss << "case " << i << ": \n" << PrettyPrint(cs);
+          ss << "case " << i++ << ": \n" << PrettyPrint(cs);
         }
         this->ReportFatalError(
           match,