diff --git a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDiagnosticFactory.cs b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDiagnosticFactory.cs index 6bd15d93e38..984673dbc78 100644 --- a/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDiagnosticFactory.cs +++ b/src/Compiler/Microsoft.CodeAnalysis.Razor.Compiler/src/Language/Components/ComponentDiagnosticFactory.cs @@ -25,9 +25,9 @@ public static RazorDiagnostic Create_UnsupportedTagHelperDirective(SourceSpan? s public static readonly RazorDiagnosticDescriptor CodeBlockInAttribute = new($"{DiagnosticPrefix}9979", - "Code blocks delimited by '@{{...}}' like '@{{ {0} }}' for attributes are no longer supported. " + + "Code blocks delimited by '@{{...}}' like '@{{{0}}}' for attributes are no longer supported. " + "These features have been changed to use attribute syntax. " + - "Use 'attr=\"@(x => {{... }}\"'.", + "Use 'attr=\"@(x => {{...}}\"'.", RazorDiagnosticSeverity.Error); public static RazorDiagnostic Create_CodeBlockInAttribute(SourceSpan? source, string expression)