diff --git a/euler/parser/attribute_calculator.cc b/euler/parser/attribute_calculator.cc index 32a64cd..f36b33d 100644 --- a/euler/parser/attribute_calculator.cc +++ b/euler/parser/attribute_calculator.cc @@ -21,7 +21,7 @@ limitations under the License. namespace euler { -bool SimpleCondtition(TreeNode* t) { +bool SimpleCondition(TreeNode* t) { std::vector children = t->GetChildren(); std::string op = children[0]->GetValue(); std::string p = children[1]->GetValue(); diff --git a/euler/parser/attribute_calculator.h b/euler/parser/attribute_calculator.h index 3add77d..065ca81 100644 --- a/euler/parser/attribute_calculator.h +++ b/euler/parser/attribute_calculator.h @@ -20,7 +20,7 @@ limitations under the License. namespace euler { -bool SimpleCondtition(TreeNode* t); +bool SimpleCondition(TreeNode* t); bool HasKey(TreeNode* t); bool HasLabel(TreeNode* t); bool Has(TreeNode* t); diff --git a/euler/parser/translator.h b/euler/parser/translator.h index 0f51d9d..8be9d2f 100644 --- a/euler/parser/translator.h +++ b/euler/parser/translator.h @@ -30,7 +30,7 @@ namespace euler { class Translator { public: explicit Translator(OptimizerType type) : env_type_(type) { - func_map_["SIMPLE_CONDITION"] = SimpleCondtition; + func_map_["SIMPLE_CONDITION"] = SimpleCondition; func_map_["HAS_KEY"] = HasKey; func_map_["HAS_LABEL"] = HasLabel; func_map_["HAS"] = Has;