Skip to content

Commit 8ddedcf

Browse files
Update NoAssignmentInExpressions.swift
1 parent 054505a commit 8ddedcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SwiftFormat/Rules/NoAssignmentInExpressions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import SwiftSyntax
1515
/// Assignment expressions must be their own statements.
1616
///
1717
/// 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.
18+
/// assigning a variable within a `return` statement exiting a `Void` function is prohibited.
1919
///
2020
/// Lint: If an assignment expression is found in a position other than a standalone statement, a
2121
/// lint finding is emitted.

0 commit comments

Comments
 (0)