mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[gardening] Fix accidental trailing whitespace.
This commit is contained in:
@@ -31,7 +31,7 @@ extension LoggingType {
|
||||
public var log: Log.Type {
|
||||
return Log.self
|
||||
}
|
||||
|
||||
|
||||
public var selfType: Any.Type {
|
||||
return type(of: self)
|
||||
}
|
||||
@@ -54,16 +54,16 @@ public struct LoggingIterator<Base : IteratorProtocol>
|
||||
: IteratorProtocol, LoggingType {
|
||||
|
||||
public typealias Log = IteratorLog
|
||||
|
||||
|
||||
public init(wrapping base: Base) {
|
||||
self.base = base
|
||||
}
|
||||
|
||||
|
||||
public mutating func next() -> Base.Element? {
|
||||
Log.next[selfType] += 1
|
||||
return base.next()
|
||||
}
|
||||
|
||||
|
||||
public var base: Base
|
||||
}
|
||||
|
||||
@@ -257,7 +257,7 @@ public struct ${Self}<
|
||||
Log.dropLast[selfType] += 1
|
||||
return base.dropLast(n)
|
||||
}
|
||||
|
||||
|
||||
public func drop(
|
||||
while predicate: (Base.Iterator.Element) throws -> Bool
|
||||
) rethrows -> SubSequence {
|
||||
@@ -269,7 +269,7 @@ public struct ${Self}<
|
||||
Log.prefixMaxLength[selfType] += 1
|
||||
return base.prefix(maxLength)
|
||||
}
|
||||
|
||||
|
||||
public func prefix(
|
||||
while predicate: (Base.Iterator.Element) throws -> Bool
|
||||
) rethrows -> SubSequence {
|
||||
|
||||
Reference in New Issue
Block a user