Skip to content

Commit 417c39d

Browse files
Apply suggestions from code review
Co-Authored-By: Jens <[email protected]>
1 parent 3048b39 commit 417c39d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3278,7 +3278,7 @@ object Parsers {
32783278
leadingVparamss ::: rparamss
32793279
var tpt = fromWithinReturnType {
32803280
if in.token == SUBTYPE && mods.is(Inline) && AllowOldWhiteboxSyntax then
3281-
deprecationWarning("`<:` return type will no longer be suported. Use transparent modifier insead.")
3281+
deprecationWarning("`<:` return type will no longer be supported. Use transparent modifier instead.")
32823282
in.nextToken()
32833283
mods1 = addMod(mods1, Mod.Transparent())
32843284
toplevelTyp()
@@ -3548,7 +3548,7 @@ object Parsers {
35483548
mods1 |= Final
35493549
DefDef(name, tparams, vparamss, tpt, subExpr())
35503550
if in.token == USCORE && AllowOldWhiteboxSyntax then
3551-
deprecationWarning("`<:` return type will no longer be suported. Use transparent modifier insead.")
3551+
deprecationWarning("`<:` return type will no longer be supported. Use transparent modifier instead.")
35523552
if !mods.is(Inline) then
35533553
syntaxError("`_ <:` is only allowed for given with `inline` modifier")
35543554
in.nextToken()

0 commit comments

Comments
 (0)