From 2aa3c6c932824adb4722db21a0622a9025ed6415 Mon Sep 17 00:00:00 2001 From: eqy Date: Fri, 12 Apr 2019 14:17:38 -0700 Subject: [PATCH] [NIT] fix relay invariant error message (#3011) * [NIT] fix common error message Extremely minor issue, but this is one of the most common error messages people see... * Update type_solver.cc trigger CI --- src/relay/pass/type_solver.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/relay/pass/type_solver.cc b/src/relay/pass/type_solver.cc index 2ce4410..84f72e0 100644 --- a/src/relay/pass/type_solver.cc +++ b/src/relay/pass/type_solver.cc @@ -460,7 +460,7 @@ Type TypeSolver::Resolve(const Type& type) { } bool TypeSolver::Solve() { - // update until queue is empty + // Update until queue is empty. while (!update_queue_.empty()) { RelationNode* rnode = update_queue_.front(); const auto& rel = rnode->rel; @@ -496,7 +496,7 @@ bool TypeSolver::Solve() { rnode->resolved = false; this->ReportError( RELAY_ERROR( - "an internal invariant was violdated while " \ + "an internal invariant was violated while " \ "typechecking your program " << err.what()), rnode->location); } -- 2.7.4