From cc56e58d0a3303a87f0a033d9c747bc32babbda8 Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Wed, 4 Oct 2023 21:04:31 +0100 Subject: [PATCH] Fix typo --- Sources/FormattingHelpers.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FormattingHelpers.swift b/Sources/FormattingHelpers.swift index e58f1df9c..19361c8ea 100644 --- a/Sources/FormattingHelpers.swift +++ b/Sources/FormattingHelpers.swift @@ -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 }