File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Sources/SwiftFormat/Rules Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments