Skip to content

Commit ffec6a2

Browse files
committed
[nfc] Add 'is' in diagnostic message.
1 parent 256335c commit ffec6a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/swift/AST/DiagnosticsClangImporter.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ NOTE(get_last_element, none, "Do you want to get the last element instead?",
203203
())
204204

205205
NOTE(iterator_method_unavailable, none, "C++ method '%0' that returns an "
206-
"iterator unavailable",
206+
"iterator is unavailable",
207207
(StringRef))
208208
NOTE(iterator_potentially_unsafe, none, "C++ methods that return iterators "
209209
"are potentially unsafe. Try re-writing "

test/Interop/Cxx/class/invalid-unsafe-projection-errors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public func test(x: M) {
3737
// CHECK: note: Mark method 'test3' as 'safe_to_import' in C++ to make it available in Swift.
3838
// CHECK: note: Mark type 'Ptr' as 'self_contained' in C++ to make methods that use it available in Swift.
3939
x.test3()
40-
// CHECK: note: C++ method 'begin' that returns an iterator unavailable
40+
// CHECK: note: C++ method 'begin' that returns an iterator is unavailable
4141
// CHECK: note: C++ methods that return iterators are potentially unsafe. Try re-writing to use Swift iterator APIs.
4242
x.begin()
4343
}

0 commit comments

Comments
 (0)