Skip to content

Commit 1b6ea57

Browse files
committed
Fix typo
1 parent b717d20 commit 1b6ea57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -2290,7 +2290,7 @@ class CallToAnyRefMethodOnPredef(stat: untpd.Tree, method: Symbol)(using Context
22902290
def msg(using Context) = i"Suspicious call to ${hl("Predef." + method.name)}"
22912291
def explain(using Context) =
22922292
i"""Top-level unqualified calls to ${hl("AnyRef")} or ${hl("Any")} methods such as ${hl(method.name.toString)} are
2293-
|resolved to calls on ${hl("Predef")}. This might not be what you intented."""
2293+
|resolved to calls on ${hl("Predef")}. This might not be what you intended."""
22942294
}
22952295

22962296
class CallToAnyRefMethodOnPackageObject(stat: untpd.Tree, method: Symbol)(using Context)
@@ -2300,7 +2300,7 @@ class CallToAnyRefMethodOnPackageObject(stat: untpd.Tree, method: Symbol)(using
23002300
def explain(using Context) =
23012301
i"""Top-level calls to ${hl("AnyRef")} or ${hl("Any")} methods are resolved to calls on the
23022302
|synthetic package object generated for the current file. This might not be
2303-
|what you intented."""
2303+
|what you intended."""
23042304
}
23052305

23062306
class TraitCompanionWithMutableStatic()(using Context)

0 commit comments

Comments
 (0)