Skip to content

Commit 3fb8bfa

Browse files
committed
Oops! Make these new public methods actually public!
1 parent 6fb80ed commit 3fb8bfa

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Sources/Algorithms/LazySplitCollection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ extension LazyCollectionProtocol {
241241
/// elements.
242242
///
243243
/// - Complexity: O(*n*), where *n* is the length of the collection.
244-
func split(
244+
public func split(
245245
maxSplits: Int = Int.max,
246246
omittingEmptySubsequences: Bool = true,
247247
whereSeparator isSeparator: @escaping (Element) -> Bool
@@ -332,7 +332,7 @@ where Element: Equatable {
332332
/// elements.
333333
///
334334
/// - Complexity: O(*n*), where *n* is the length of the collection.
335-
func split(
335+
public func split(
336336
separator: Element,
337337
maxSplits: Int = Int.max,
338338
omittingEmptySubsequences: Bool = true

Sources/Algorithms/LazySplitSequence.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ extension LazySequenceProtocol {
214214
/// elements.
215215
///
216216
/// - Complexity: O(*n*), where *n* is the length of the sequence.
217-
func split(
217+
public func split(
218218
maxSplits: Int = Int.max,
219219
omittingEmptySubsequences: Bool = true,
220220
whereSeparator isSeparator: @escaping (Element) -> Bool
@@ -304,7 +304,7 @@ extension LazySequenceProtocol where Element: Equatable {
304304
/// elements.
305305
///
306306
/// - Complexity: O(*n*), where *n* is the length of the sequence.
307-
func split(
307+
public func split(
308308
separator: Element,
309309
maxSplits: Int = Int.max,
310310
omittingEmptySubsequences: Bool = true

Tests/SwiftAlgorithmsTests/LazySplitCollectionTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import XCTest
1313

14-
@testable import Algorithms
14+
import Algorithms
1515

1616
final class LazySplitCollectionTests: XCTestCase {
1717
func testInts() {

Tests/SwiftAlgorithmsTests/LazySplitSequenceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import XCTest
1313

14-
@testable import Algorithms
14+
import Algorithms
1515

1616
final class LazySplitSequenceTests: XCTestCase {
1717
fileprivate static let isEven = { $0 % 2 == 0 }

0 commit comments

Comments
 (0)