diff --git a/docs/syntax_cheat_sheet.md b/docs/syntax_cheat_sheet.md index 5f7cf3d..85e8a19 100644 --- a/docs/syntax_cheat_sheet.md +++ b/docs/syntax_cheat_sheet.md @@ -58,7 +58,7 @@ * modifies the value: `x := 5 { &x = 10 debug(x) } debug(x)` prints `10` and then `10`. + ` = ` * assigns the value returned by `` to the value behind the reference returned by ``. - * if `` returns `, `` has to return `&`. + * if `` returns ``, `` has to return `&`. * this is why `& = ` is the way it is. + `*** = ` * same as before, but performs dereferences: `&&&&int` becomes `&int` (minus 3 references because 3 `*`s), so a value of type `int` can be assigned to it.