Skip to content

Commit 474a2d9

Browse files
committed
fix static_functions_not_mutating error msg
1 parent 1e5be2b commit 474a2d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/AST/DiagnosticsSema.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1718,7 +1718,7 @@ ERROR(functions_mutating_and_not,none,
17181718
"method must not be declared both %0 and %1",
17191719
(SelfAccessKind, SelfAccessKind))
17201720
ERROR(static_functions_not_mutating,none,
1721-
"static functions must not be declared mutating", ())
1721+
"nonmutating or mutating modifiers cannot be used on static functions because they do not operate on instance properties or self", ())
17221722

17231723
ERROR(readwriter_mutatingness_differs_from_reader_or_writer_mutatingness,none,
17241724
"%0 cannot be %1 when "

0 commit comments

Comments
 (0)