Skip to content

Commit 1bec039

Browse files
Fix typo
1 parent 3277d9d commit 1bec039

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,7 +1741,7 @@ object desugar {
17411741
def traverse(tree: untpd.Tree)(implicit ctx: Context): Unit = tree match {
17421742
case Splice(expr) => collect(expr)
17431743
case TypSplice(expr) =>
1744-
ctx.error("Type splices cannot ve used in val patterns. Consider using `match` instead.", tree.sourcePos)
1744+
ctx.error("Type splices cannot be used in val patterns. Consider using `match` instead.", tree.sourcePos)
17451745
case _ => traverseChildren(tree)
17461746
}
17471747
}.traverse(expr)

0 commit comments

Comments
 (0)