Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Commit 0fdb39d

Browse files
authored
TensorFlow: coddle some colons (NFC) (#924)
Adjust style as per swift-format.
1 parent fd82b2b commit 0fdb39d

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

Sources/TensorFlow/Epochs/Algorithms.swift

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
/// of a collection to `MutableCollectionAlgorithms` to get these customization
3131
/// points to be used from other algorithms defined on
3232
/// `MutableCollectionAlgorithms`.
33-
public protocol MutableCollectionAlgorithms : MutableCollection
34-
where SubSequence : MutableCollectionAlgorithms
33+
public protocol MutableCollectionAlgorithms: MutableCollection
34+
where SubSequence: MutableCollectionAlgorithms
3535
{
3636
/// Rotates the elements of the collection so that the element
3737
/// at `middle` ends up first.
@@ -45,9 +45,9 @@ where SubSequence : MutableCollectionAlgorithms
4545

4646
// Conformances of common collection types to MutableCollectionAlgorithms.
4747
// If rotate was a requirement of MutableCollection, these would not be needed.
48-
extension Array : MutableCollectionAlgorithms {}
49-
extension ArraySlice : MutableCollectionAlgorithms {}
50-
extension Slice : MutableCollectionAlgorithms
48+
extension Array: MutableCollectionAlgorithms {}
49+
extension ArraySlice: MutableCollectionAlgorithms {}
50+
extension Slice: MutableCollectionAlgorithms
5151
where Base: MutableCollection {}
5252

5353
extension MutableCollection {
@@ -380,7 +380,7 @@ extension Concatenation: Collection where Base1: Collection, Base2: Collection {
380380
}
381381
}
382382

383-
extension Concatenation : BidirectionalCollection
383+
extension Concatenation: BidirectionalCollection
384384
where Base1: BidirectionalCollection, Base2: BidirectionalCollection {
385385
public func index(before i: Index) -> Index {
386386
assert(i != startIndex, "Can't advance before startIndex")
@@ -395,9 +395,8 @@ where Base1: BidirectionalCollection, Base2: BidirectionalCollection {
395395
}
396396
}
397397

398-
extension Concatenation : RandomAccessCollection
399-
where Base1: RandomAccessCollection, Base2: RandomAccessCollection
400-
{
398+
extension Concatenation: RandomAccessCollection
399+
where Base1: RandomAccessCollection, Base2: RandomAccessCollection {
401400
public func index(_ i: Index, offsetBy n: Int) -> Index {
402401
if n == 0 { return i }
403402
return n > 0 ? _offsetForward(i, by: n) : _offsetBackward(i, by: -n)
@@ -520,7 +519,7 @@ where Base: BidirectionalCollection {
520519
}
521520
}
522521

523-
extension RotatedCollection : RandomAccessCollection
522+
extension RotatedCollection: RandomAccessCollection
524523
where Base: RandomAccessCollection {}
525524

526525
extension Collection {

0 commit comments

Comments
 (0)