Skip to content

Commit 11c8eab

Browse files
authored
Fix spelling of a new swift-syntax-600-only diagnostic. (#330)
Follow-up to #279 and #302. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 6be3331 commit 11c8eab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TestingMacros/Support/DiagnosticMessage.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ struct DiagnosticMessage: SwiftDiagnostics.DiagnosticMessage {
245245
// not have reliable location information.
246246
Self(
247247
syntax: Syntax(attribute),
248-
message: "The @\(attribute.attributeNameText) attribute cannot be applied within \(_kindString(for: node, includeA: true)).",
248+
message: "Attribute \(_macroName(attribute)) cannot be applied within \(_kindString(for: node, includeA: true)).",
249249
severity: .error
250250
)
251251
}

0 commit comments

Comments
 (0)