Skip to content

Commit b117214

Browse files
Merge pull request #8307 from robstoll/patch-25
doc(macros): typo and other improvements
2 parents 0aaa769 + 32b13fe commit b117214

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/reference/metaprogramming/macros.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ and allow for undefined compiler behavior if they are not. This is analogous to
459459
the status of pattern guards in Scala, which are also required, but not
460460
verified, to be pure.
461461

462-
[Multi-Stage Programming](./staging.md) introduces one additional methods where
462+
[Multi-Stage Programming](./staging.md) introduces one additional method where
463463
you can expand code at runtime with a method `run`. There is also a problem with
464464
that invokation of `run` in splices. Consider the following expression:
465465

@@ -475,7 +475,7 @@ the splice will reduce the expression `run('x)` to `x`. But then the result
475475

476476
is no longer phase correct. To prevent this soundness hole it seems easiest to
477477
classify `run` as a side-effecting operation. It would thus be prevented from
478-
appearing in splices. In a base language with side-effects we'd have to do this
478+
appearing in splices. In a base language with side effects we would have to do this
479479
anyway: Since `run` runs arbitrary code it can always produce a side effect if
480480
the code it runs produces one.
481481

0 commit comments

Comments
 (0)