We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 054505a commit 8ddedcfCopy full SHA for 8ddedcf
Sources/SwiftFormat/Rules/NoAssignmentInExpressions.swift
@@ -15,7 +15,7 @@ import SwiftSyntax
15
/// Assignment expressions must be their own statements.
16
///
17
/// Assignment should not be used in an expression context that expects a `Void` value. For example,
18
-/// assigning a variable within a `return` statement existing a `Void` function is prohibited.
+/// assigning a variable within a `return` statement exiting a `Void` function is prohibited.
19
20
/// Lint: If an assignment expression is found in a position other than a standalone statement, a
21
/// lint finding is emitted.
0 commit comments