Skip to content

Commit 6073193

Browse files
committed
Make more @inlinable.
1 parent 62abcb4 commit 6073193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Algorithms/Cycle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public struct FiniteCycle<Base: Collection> {
6363
/// A Product2 instance for iterating the Base collection.
6464
public let product: Product2<Range<Int>, Base>
6565

66-
@usableFromInline
66+
@inlinable
6767
internal init(base: Base, times: Int) {
6868
self.product = Product2(0..<times, base)
6969
}
@@ -75,7 +75,7 @@ extension FiniteCycle {
7575
@usableFromInline
7676
var productIterator: Product2<Range<Int>, Base>.Iterator
7777

78-
@usableFromInline
78+
@inlinable
7979
internal init(product: Product2<Range<Int>, Base>) {
8080
self.productIterator = product.makeIterator()
8181
}

0 commit comments

Comments
 (0)