From d69513460ce07423df7f21c5fd3ef791ad8a4351 Mon Sep 17 00:00:00 2001 From: AlexanderBlackman <51733876+AlexanderBlackman@users.noreply.github.com> Date: Sun, 14 Apr 2024 06:13:26 +1000 Subject: [PATCH] Update DiagnosticsDescriptors.cs fixed spelling Also, please change the tutorial to mention this is a custom message earlier, I was pretty confused and was worried I typed something wrong. --- .../Generator/Diagnostics/DiagnosticsDescriptors.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csharp-advanced-topics/SourceGeneratorInCSharp/Generator/Diagnostics/DiagnosticsDescriptors.cs b/csharp-advanced-topics/SourceGeneratorInCSharp/Generator/Diagnostics/DiagnosticsDescriptors.cs index f78feceeb0..dfcf6b6eb8 100644 --- a/csharp-advanced-topics/SourceGeneratorInCSharp/Generator/Diagnostics/DiagnosticsDescriptors.cs +++ b/csharp-advanced-topics/SourceGeneratorInCSharp/Generator/Diagnostics/DiagnosticsDescriptors.cs @@ -6,7 +6,7 @@ public static class DiagnosticsDescriptors { public static readonly DiagnosticDescriptor ClassWithWrongNameMessage = new("ERR001", // id - "Worng name", // title + "Wrong name", // title "The class '{0}' must be contains 'Model' prefix", // message "Generator", // category DiagnosticSeverity.Error,