Skip to content

Commit dd07df0

Browse files
authored
Correct type name in macro test code. (#190)
This looks like a copy/paste error during development of the sample. The type was originally named FourCC, but was later expanded to FourCharacterCode for readability.
2 parents 6b38525 + b79af08 commit dd07df0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

TSPL.docc/LanguageGuide/Macros.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -704,7 +704,7 @@ let file = BasicMacroExpansionContext.KnownSourceFile(
704704
let context = BasicMacroExpansionContext(sourceFiles: [source: file])
705705

706706
let transformedSF = source.expand(
707-
macros:["fourCharacterCode": FourCC.self],
707+
macros:["fourCharacterCode": FourCharacterCode.self],
708708
in: context
709709
)
710710

0 commit comments

Comments
 (0)