Skip to content

Commit 80c64cc

Browse files
committed
Adjustments for merging spacedBinaryOperator and unspacedBinaryOperator
1 parent 0bc2f03 commit 80c64cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftFormatPrettyPrint/TokenStreamCreator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ fileprivate final class TokenStreamCreator: SyntaxVisitor {
308308
// from the following parenthesis or generic argument list. Note that even if the function is
309309
// defining a prefix or postfix operator, or even if the operator isn't originally followed by a
310310
// space, the token kind always comes through as `spacedBinaryOperator`.
311-
if case .spacedBinaryOperator = node.identifier.tokenKind {
311+
if case .binaryOperator = node.identifier.tokenKind {
312312
after(node.identifier.lastToken, tokens: .space)
313313
}
314314

0 commit comments

Comments
 (0)