Skip to content

Commit c649858

Browse files
authored
Merge pull request #2046 from wsargent/patch-3
One does not simply walk into Mordor
2 parents 0e00e90 + 0599ab0 commit c649858

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_overviews/scala3-macros/tutorial/quotes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Due to some technical considerations we only allow it directly within `inline` d
2525
It is possible to write a quote within a quote, but usually when we write macros we do not encounter such code.
2626

2727
## Level consistency
28-
One cannot simple write any arbitrary code within quotes and within splices.
28+
One cannot simply write any arbitrary code within quotes and within splices.
2929
A part of the program will live at compile-time and the other will live at runtime.
3030
Consider the following ill-constructed code.
3131

@@ -45,7 +45,7 @@ def myBadCounter2(using Quotes): Expr[Int] = '{
4545
${ x += 1; 'x }
4646
}
4747
```
48-
Clearly, this should work as the variable does not exist yet.
48+
Clearly, this should not work as the variable does not exist yet.
4949
To make sure you can only write programs that do not contain these kinds of problems we restrict the set of references to variable and other definitions.
5050

5151
We introduce _levels_ as a count of the number of quotes minus the number of splices surrounding an expression or definition.

0 commit comments

Comments
 (0)