Skip to content

Commit af84165

Browse files
committed
fix annotation
1 parent d4bbe76 commit af84165

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftFormat/Rules/AlwaysUseLiteralForEmptyCollectionInit.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public final class AlwaysUseLiteralForEmptyCollectionInit : SyntaxFormatRule {
8686
if replacement.typeAnnotation == nil {
8787
// Drop trailing trivia after pattern because ':' has to appear connected to it.
8888
replacement.pattern = node.pattern.with(\.trailingTrivia, [])
89-
// Add explicit type annotiation: ': [<Type>]`
89+
// Add explicit type annotation: ': [<Type>]`
9090
replacement.typeAnnotation = .init(type: type.with(\.leadingTrivia, .space)
9191
.with(\.trailingTrivia, .space))
9292
}
@@ -109,7 +109,7 @@ public final class AlwaysUseLiteralForEmptyCollectionInit : SyntaxFormatRule {
109109
if replacement.typeAnnotation == nil {
110110
// Drop trailing trivia after pattern because ':' has to appear connected to it.
111111
replacement.pattern = node.pattern.with(\.trailingTrivia, [])
112-
// Add explicit type annotiation: ': [<Type>]`
112+
// Add explicit type annotation: ': [<Type>]`
113113
replacement.typeAnnotation = .init(type: type.with(\.leadingTrivia, .space)
114114
.with(\.trailingTrivia, .space))
115115
}

0 commit comments

Comments
 (0)