Skip to content

Commit 37eb0f3

Browse files
Backport "Update Quotes.scala" to LTS (#21072)
Backports #20174 to the LTS branch. PR submitted by the release tooling. [skip ci]
2 parents 9981e81 + 64803ff commit 37eb0f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/src/scala/quoted/Quotes.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -566,8 +566,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
566566
trait DefDefModule { this: DefDef.type =>
567567
/** Create a method definition `def f[..](...)` with the signature defined in the symbol.
568568
*
569-
* The `rhsFn` is a function that receives references to its parameters and should return
570-
* `Some` containing the implementation of the method. Returns `None` the method has no implementation.
569+
* The `rhsFn` is a function that receives references to its parameters, and should return
570+
* `Some` containing the implementation of the method, or `None` if the method has no implementation.
571571
* Any definition directly inside the implementation should have `symbol` as owner.
572572
*
573573
* Use `Symbol.asQuotes` to create the rhs using quoted code.
@@ -643,8 +643,8 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
643643
trait ValDefModule { this: ValDef.type =>
644644
/** Create a value definition `val x`, `var x` or `lazy val x` with the signature defined in the symbol.
645645
*
646-
* The `rhs` should return be `Some` containing the implementation of the method.
647-
* Returns `None` the method has no implementation.
646+
* The `rhs` should return `Some` containing the implementation of the method,
647+
* or `None` if the method has no implementation.
648648
* Any definition directly inside the implementation should have `symbol` as owner.
649649
*
650650
* Use `Symbol.asQuotes` to create the rhs using quoted code.

0 commit comments

Comments
 (0)