File tree 1 file changed +2
-2
lines changed
Sources/SwiftFormat/Rules
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 {
86
86
if replacement. typeAnnotation == nil {
87
87
// Drop trailing trivia after pattern because ':' has to appear connected to it.
88
88
replacement. pattern = node. pattern. with ( \. trailingTrivia, [ ] )
89
- // Add explicit type annotiation : ': [<Type>]`
89
+ // Add explicit type annotation : ': [<Type>]`
90
90
replacement. typeAnnotation = . init( type: type. with ( \. leadingTrivia, . space)
91
91
. with ( \. trailingTrivia, . space) )
92
92
}
@@ -109,7 +109,7 @@ public final class AlwaysUseLiteralForEmptyCollectionInit : SyntaxFormatRule {
109
109
if replacement. typeAnnotation == nil {
110
110
// Drop trailing trivia after pattern because ':' has to appear connected to it.
111
111
replacement. pattern = node. pattern. with ( \. trailingTrivia, [ ] )
112
- // Add explicit type annotiation : ': [<Type>]`
112
+ // Add explicit type annotation : ': [<Type>]`
113
113
replacement. typeAnnotation = . init( type: type. with ( \. leadingTrivia, . space)
114
114
. with ( \. trailingTrivia, . space) )
115
115
}
You can’t perform that action at this time.
0 commit comments