mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
[BitCollections] Adopt some instead of classic generic where possible
This commit is contained in:
26 files changed
+234
-229
No files matched your search
@@ -32,7 +32,7 @@ extension BitArray: LosslessStringConvertible {
|
||||
self = bits
|
||||
}
|
||||
|
||||
internal init?<C: Collection>(_utf8 utf8: C) where C.Element == UInt8 {
|
||||
internal init?(_utf8 utf8: some Collection<UInt8>) {
|
||||
let c = utf8.count
|
||||
self.init(repeating: false, count: c)
|
||||
var i = c &- 1
|
||||
|
||||
Reference in new issue
Block a user