瀏覽代碼

Minor improvement in error messages

David Peter 1 年之前
父節點
當前提交
a3000202d9
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      numbat/src/diagnostic.rs

+ 2 - 2
numbat/src/diagnostic.rs

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