Browse Source

Minor improvement in error messages

David Peter 1 year ago
parent
commit
a3000202d9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      numbat/src/diagnostic.rs

+ 2 - 2
numbat/src/diagnostic.rs

@@ -314,10 +314,10 @@ impl ErrorDiagnostic for TypeCheckError {
             ) => d
             ) => d
                 .with_labels(vec![
                 .with_labels(vec![
                     span_first
                     span_first
-                        .diagnostic_label(LabelStyle::Primary)
+                        .diagnostic_label(LabelStyle::Secondary)
                         .with_message(type_first.to_string()),
                         .with_message(type_first.to_string()),
                     span_subsequent
                     span_subsequent
-                        .diagnostic_label(LabelStyle::Secondary)
+                        .diagnostic_label(LabelStyle::Primary)
                         .with_message(type_subsequent.to_string()),
                         .with_message(type_subsequent.to_string()),
                 ])
                 ])
                 .with_notes(vec![inner_error]),
                 .with_notes(vec![inner_error]),