Skip to content

Commit c51f24b

Browse files
Update Quotes.scala (#20174)
2 parents c47138c + 6731181 commit c51f24b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/src/scala/quoted/Quotes.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -589,8 +589,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
589589
trait DefDefModule { this: DefDef.type =>
590590
/** Create a method definition `def f[..](...)` with the signature defined in the symbol.
591591
*
592-
* The `rhsFn` is a function that receives references to its parameters and should return
593-
* `Some` containing the implementation of the method. Returns `None` the method has no implementation.
592+
* The `rhsFn` is a function that receives references to its parameters, and should return
593+
* `Some` containing the implementation of the method, or `None` if the method has no implementation.
594594
* Any definition directly inside the implementation should have `symbol` as owner.
595595
*
596596
* Use `Symbol.asQuotes` to create the rhs using quoted code.
@@ -666,8 +666,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
666666
trait ValDefModule { this: ValDef.type =>
667667
/** Create a value definition `val x`, `var x` or `lazy val x` with the signature defined in the symbol.
668668
*
669-
* The `rhs` should return be `Some` containing the implementation of the method.
670-
* Returns `None` the method has no implementation.
669+
* The `rhs` should return `Some` containing the implementation of the method,
670+
* or `None` if the method has no implementation.
671671
* Any definition directly inside the implementation should have `symbol` as owner.
672672
*
673673
* Use `Symbol.asQuotes` to create the rhs using quoted code.

0 commit comments

Comments
 (0)