From 85f6ac2b1e7308360ebcd20e2258253314f1f31a Mon Sep 17 00:00:00 2001 From: Edgar Luque Date: Wed, 11 Dec 2024 10:37:03 -0300 Subject: [PATCH] fix --- docs/src/workshop_p2.md | 1 + docs/src/workshop_p6.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/workshop_p2.md b/docs/src/workshop_p2.md index ca53400..3d98323 100644 --- a/docs/src/workshop_p2.md +++ b/docs/src/workshop_p2.md @@ -34,6 +34,7 @@ The language AST is quite simple, it consists of the following: #[derive(Debug, Clone)] pub enum Expr { Number(i64), + Call { target: String, args: Vec }, Variable(String), Op(Box, Opcode, Box), } diff --git a/docs/src/workshop_p6.md b/docs/src/workshop_p6.md index dc352b1..b403332 100644 --- a/docs/src/workshop_p6.md +++ b/docs/src/workshop_p6.md @@ -6,7 +6,7 @@ With this dialect you don't need to add extra blocks, since the control flow wil The only limitation is that we can't do early returns this way, but for this simple language it won't matter. > You will need to clone the `locals` HashMap inside the created regions to avoid lifetime issues. But since any variable created -inside the if or else block only live for that scope, it works good. +inside the if or else block only live for that scope, it works well. ```rust // src/codegen/ifelse_stmt.rs