Skip to content

Commit ecba50d

Browse files
Apply suggestions from code review
Co-authored-by: Guillaume Martres <[email protected]>
1 parent 1acd745 commit ecba50d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/src/scala/quoted/Quotes.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
473473
def unapply(cdef: ClassDef): (String, DefDef, List[Tree /* Term | TypeTree */], Option[ValDef], List[Statement])
474474

475475

476-
/** Create the ValDef and ClassDef of a module.
476+
/** Create the ValDef and ClassDef of a module (equivalent to an `object` declaration in source code).
477477
*
478478
* Equivalent to
479479
* ```
@@ -484,7 +484,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
484484
* List(modValDef, modClassDef)
485485
* ```
486486
*
487-
* @param module the module symbol (of the module lazy val)
487+
* @param module the module symbol (created using `Symbol.newModule`)
488488
* @param parents parents of the module class
489489
* @param body body of the module class
490490
* @return The module lazy val definition and module class definition.
@@ -3713,7 +3713,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
37133713
*
37143714
* This symbol starts without an accompanying definition.
37153715
* It is the meta-programmer's responsibility to provide exactly one corresponding definition by passing
3716-
* this symbol to the ClassDef and ValDef constructor.
3716+
* this symbol to `ClassDef.module`.
37173717
*
37183718
* @note As a macro can only splice code into the point at which it is expanded, all generated symbols must be
37193719
* direct or indirect children of the reflection context's owner.

0 commit comments

Comments
 (0)