[BitSet] Call _arrayDescription instead of duplicating it

This commit is contained in:
Karoy Lorentey committed 2024-01-30 17:59:47 -08:00
1 parent 0da60c2075
commit 5648e91ffb
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
}
}