From 408ce853d00afe09b1e8940fd790523c40d9da34 Mon Sep 17 00:00:00 2001 From: zoecarver Date: Thu, 4 May 2023 10:26:45 -0700 Subject: [PATCH] [diags][cxx-interop] for-loop -> for-in loop. --- include/swift/AST/DiagnosticsClangImporter.def | 2 +- test/Interop/Cxx/class/fixits-for-std-vector.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/swift/AST/DiagnosticsClangImporter.def b/include/swift/AST/DiagnosticsClangImporter.def index 5b8c403972f3a..618fedc1f43cb 100644 --- a/include/swift/AST/DiagnosticsClangImporter.def +++ b/include/swift/AST/DiagnosticsClangImporter.def @@ -196,7 +196,7 @@ NOTE(mark_safe_to_import, none, "annotate method '%0' with 'SWIFT_RETURNS_INDEPE NOTE(at_to_subscript, none, "do you want to replace it with a call " "to the subscript operator?", ()) -NOTE(use_collection_apis, none, "do you want to use a for-loop instead?", +NOTE(use_collection_apis, none, "do you want to use a for-in loop instead?", ()) NOTE(replace_with_nil, none, "do you want to compare against 'nil' instead?", ()) diff --git a/test/Interop/Cxx/class/fixits-for-std-vector.swift b/test/Interop/Cxx/class/fixits-for-std-vector.swift index 0987bef9339c3..d5492e84412d6 100644 --- a/test/Interop/Cxx/class/fixits-for-std-vector.swift +++ b/test/Interop/Cxx/class/fixits-for-std-vector.swift @@ -22,7 +22,7 @@ import CxxStdlib public func test(v: V) { // CHECK: note: C++ method 'begin' that returns an iterator is unavailable - // CHECK: note: do you want to use a for-loop instead? + // CHECK: note: do you want to use a for-in loop instead? // CHECK: ^~~~~ // CHECK: makeIterator _ = v.begin()