mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
[BitSet] Call _arrayDescription instead of duplicating it
This commit is contained in:
2 files changed
+6
-24
No files matched your search
@@ -12,17 +12,6 @@
|
||||
extension BitSet: CustomDebugStringConvertible {
|
||||
/// A textual representation of this instance, suitable for debugging.
|
||||
public var debugDescription: String {
|
||||
var result = "["
|
||||
var first = true
|
||||
for item in self {
|
||||
if first {
|
||||
first = false
|
||||
} else {
|
||||
result += ", "
|
||||
}
|
||||
debugPrint(item, terminator: "", to: &result)
|
||||
}
|
||||
result += "]"
|
||||
return result
|
||||
description
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user