Skip to content

Commit 408ce85

Browse files
committed
[diags][cxx-interop] for-loop -> for-in loop.
1 parent bd1cc4c commit 408ce85

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
@@ -196,7 +196,7 @@ NOTE(mark_safe_to_import, none, "annotate method '%0' with 'SWIFT_RETURNS_INDEPE
196196
NOTE(at_to_subscript, none, "do you want to replace it with a call "
197197
"to the subscript operator?",
198198
())
199-
NOTE(use_collection_apis, none, "do you want to use a for-loop instead?",
199+
NOTE(use_collection_apis, none, "do you want to use a for-in loop instead?",
200200
())
201201
NOTE(replace_with_nil, none, "do you want to compare against 'nil' instead?",
202202
())

test/Interop/Cxx/class/fixits-for-std-vector.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import CxxStdlib
2222

2323
public func test(v: V) {
2424
// CHECK: note: C++ method 'begin' that returns an iterator is unavailable
25-
// CHECK: note: do you want to use a for-loop instead?
25+
// CHECK: note: do you want to use a for-in loop instead?
2626
// CHECK: ^~~~~
2727
// CHECK: makeIterator
2828
_ = v.begin()

0 commit comments

Comments
 (0)