Skip to content

Commit ea64af0

Browse files
authored
Update compiler/src/dotty/tools/dotc/reporting/messages.scala
1 parent ac7e99e commit ea64af0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/messages.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -2428,7 +2428,7 @@ class NotAnExtractor(tree: untpd.Tree)(using Context) extends PatternMatchMsg(No
24282428
| - If it returns a single sub-value of type T, return an ${hl("Option[T]")}
24292429
| - If it returns several sub-values T1,...,Tn, group them in an optional tuple ${hl("Option[(T1,...,Tn)]")}
24302430
|
2431-
|Additionnaly, ${hl("unapply")} or ${hl("unapplySeq")} methods can not take type parameters after their explicit term parameter.
2431+
|Additionaly, ${hl("unapply")} or ${hl("unapplySeq")} methods cannot take type parameters after their explicit term parameter.
24322432
|
24332433
|Sometimes, the number of sub-values isn't fixed and we would like to return a sequence.
24342434
|For this reason, you can also define patterns through ${hl("unapplySeq")} which returns ${hl("Option[Seq[T]]")}.

0 commit comments

Comments
 (0)