Skip to content

Commit ea4bd01

Browse files
committed
more clarifications
1 parent 5b9da22 commit ea4bd01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

overviews/macros/annotations.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ This opens a number of new possibilities in code generation land.
3232

3333
In this walkthrough we will write a silly, but very useful macro that does nothing except for logging the annottees.
3434
As a first step, we define an annotation that inherits `StaticAnnotation` and defines a `macroTransform` macro
35-
(the name `macroTransform` is important as it tells the macro engine that the enclosing annotation is a macro annotation).
35+
(the name `macroTransform` and the signature `annottees: Any*` of that macro are important as they tell the macro engine
36+
that the enclosing annotation is a macro annotation).
3637

3738
import scala.reflect.macros.Context
3839
import scala.language.experimental.macros

0 commit comments

Comments
 (0)