Skip to content

Commit

Permalink
Update 3.md
Browse files Browse the repository at this point in the history
  • Loading branch information
guyutongxue authored May 11, 2024
1 parent fa6996b commit b138577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/levels/3.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ using namespace std::literals; // 使用 s 后缀
std::vector<ValuePtr> v = expr->toVector();
if (v[0]->asSymbol() == "define"s) {
if (auto name = v[1]->asSymbol()) {
将 (*name, v[2]) 添加到符号表中;
将 ( 符号name , v[2]的值 ) 添加到符号表中;
return 空表;
} else {
throw LispError("Malformed define.");
Expand Down

0 comments on commit b138577

Please sign in to comment.