Skip to content

Commit a77e414

Browse files
committed
[Macros] Fix diagnostic to more closely reflect what the compiler used to have
1 parent d553bfe commit a77e414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftSyntaxMacros/MacroReplacement.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ enum MacroExpanderError: DiagnosticMessage {
1414
return "macro expansion requires a definition"
1515

1616
case .definitionNotMacroExpansion:
17-
return "macro definition must itself by a macro expansion expression (starting with '#')"
17+
return "macro must itself be defined by a macro expansion expression (starting with '#')"
1818

1919
case .nonParameterReference(let name):
2020
return "reference to value '\(name.text)' that is not a macro parameter in expansion"

0 commit comments

Comments
 (0)