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