Skip to content

Commit ae2328f

Browse files
committed
Tweak MissingIdent's explanation
Firstly, split out the "for instance" clause so it doesn't get confusing. Also backticks-escape the name (in my case name was "the" which was quite confusing, and funny). Finally, rather than "accuse" the user for forgetting, rephrase to "an import is missing". And end the sentence with a period.
1 parent f409c88 commit ae2328f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -282,8 +282,8 @@ object messages {
282282
val explanation: String = {
283283
hl"""|The identifier for `$treeKind$name` is not bound, that is,
284284
|no declaration for this identifier can be found.
285-
|That can happen for instance if $name or its declaration has either been
286-
|misspelt, or if you're forgetting an import"""
285+
|That can happen, for instance, if `$name` or its declaration has either been
286+
|misspelt or if an import is missing."""
287287
}
288288
}
289289

0 commit comments

Comments
 (0)