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

Typo

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