Skip to content

Commit 5db4230

Browse files
committed
Fix typo
1 parent cc6322f commit 5db4230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/FirstTransform.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class FirstTransform extends MiniPhaseTransform with InfoTransformer with Annota
163163

164164
override def transformValDef(vdef: tpd.ValDef)(implicit ctx: Context, info: TransformerInfo): tpd.Tree = {
165165
if (vdef.symbol.hasAnnotation(defn.VolatileAnnot) && vdef.tpt.tpe.isPhantom)
166-
ctx.error("Phantom fields can not be @volitile", vdef.pos)
166+
ctx.error("Phantom fields can not be @volatile", vdef.pos)
167167
vdef
168168
}
169169

0 commit comments

Comments
 (0)