提交 3bac2d0d 编写于 作者: Y Yu Yang

Typo

上级 237efc2f
......@@ -63,7 +63,7 @@ class Scope {
if (var != nullptr) {
return var;
} else if (parent_ != nullptr) {
return parent_->Get(name);
return parent_->GetVariable(name);
} else {
return nullptr;
}
......@@ -102,7 +102,7 @@ class Scope {
private:
std::shared_ptr<Scope> parent_;
std::unordered_map<std::string, std::unique_ptr<Attribute>> vars_;
std::unordered_map<std::string, std::unique_ptr<Variable>> vars_;
};
```
## Only scope can create a variable
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册