Skip to content

Commit 231c8be

Browse files
committed
Remove variable named cnt
For following review #2037 (comment)
1 parent 0856854 commit 231c8be

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Foundation/NSSet.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,9 @@ open class NSSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding, NSCodi
136136
indent += " "
137137
}
138138
var result = indent + "{(\n"
139-
let cnt = count
140-
for idx in 0..<cnt {
139+
for idx in 0..<self.count {
141140
result += indent + " " + descriptions[idx]
142-
if idx + 1 < cnt {
141+
if idx + 1 < self.count {
143142
result += ",\n"
144143
} else {
145144
result += "\n"

0 commit comments

Comments
 (0)