Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklockwood authored Oct 4, 2023
1 parent 2837d84 commit cc56e58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/FormattingHelpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1216,7 +1216,7 @@ extension Formatter {

// The body should contain exactly one expression.
// We can confirm this by parsing the body with `parseExpressionRange`,
// and checking that the toke after that expression is just the end of the scope.
// and checking that the token after that expression is just the end of the scope.
guard var firstTokenInBody = index(of: .nonSpaceOrCommentOrLinebreak, after: startOfBody) else {
return false
}
Expand Down

0 comments on commit cc56e58

Please sign in to comment.