Skip to content

Commit 7de84b4

Browse files
committed
add quote around code in explanation message
1 parent e820624 commit 7de84b4

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,8 +792,8 @@ object messages {
792792
val explanation =
793793
hl"""|There are several ways to make the match exhaustive:
794794
| - Add missing cases as shown in the warning
795-
| - If an extractor always return Some(...), write Some[X] for its return type
796-
| - Add a case _ => ... at the end to match all remaining cases
795+
| - If an extractor always return 'Some(...)', write 'Some[X]' for its return type
796+
| - Add a 'case _ => ...' at the end to match all remaining cases
797797
|"""
798798
}
799799

0 commit comments

Comments
 (0)