Skip to content

Commit b350f2b

Browse files
committed
[cxx-interop] NFC: rename initializer parameter
1 parent b98f71f commit b350f2b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

stdlib/public/Cxx/CxxConvertibleToCollection.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ extension RangeReplaceableCollection {
4545
/// container when each element is copied in O(1). Note that this might not
4646
/// be true for certain C++ types, e.g. those with a custom copy
4747
/// constructor that performs additional logic.
48-
public init<C: CxxConvertibleToCollection>(_ c: C)
48+
public init<C: CxxConvertibleToCollection>(_ elements: C)
4949
where C.RawIterator.Pointee == Element {
5050

5151
self.init()
52-
c.forEach { self.append($0) }
52+
elements.forEach { self.append($0) }
5353
}
5454
}
5555

@@ -62,10 +62,10 @@ extension SetAlgebra {
6262
/// container when each element is copied in O(1). Note that this might not
6363
/// be true for certain C++ types, e.g. those with a custom copy
6464
/// constructor that performs additional logic.
65-
public init<C: CxxConvertibleToCollection>(_ c: C)
65+
public init<C: CxxConvertibleToCollection>(_ elements: C)
6666
where C.RawIterator.Pointee == Element {
6767

6868
self.init()
69-
c.forEach { self.insert($0) }
69+
elements.forEach { self.insert($0) }
7070
}
7171
}

0 commit comments

Comments
 (0)