Skip to content

Commit 3b5386e

Browse files
authored
[AST] Removes the trailing space when replacing "nonmutating" with "mutating" via fix-it
1 parent bd12fd8 commit 3b5386e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/Decl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5689,7 +5689,7 @@ void VarDecl::emitLetToVarNoteIfSimple(DeclContext *UseDC) const {
56895689
isa<AccessorDecl>(FD));
56905690
if (auto nonmutatingAttr =
56915691
FD->getAttrs().getAttribute<NonMutatingAttr>()) {
5692-
diags.fixItReplace(nonmutatingAttr->getLocation(), "mutating ");
5692+
diags.fixItReplace(nonmutatingAttr->getLocation(), "mutating");
56935693
} else {
56945694
diags.fixItInsert(FD->getFuncLoc(), "mutating ");
56955695
}

0 commit comments

Comments
 (0)