Skip to content

Commit

Permalink
Cleanup (#118).
Browse files Browse the repository at this point in the history
- GitHub action failed because `[UInt8].SubSequence` is not a valid type on Linux 😑
  • Loading branch information
oscbyspro committed Dec 8, 2023
1 parent 3830966 commit 8336851
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/NBKCoreKit/Models/NBKPrimeSieve.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
///
public final class NBKPrimeSieve: CustomStringConvertible {

/// A collection of all the primes that fit in one byte.
/// A collection of all primes that fit in one byte.
///
/// - Note: It contains `54` elements.
///
Expand Down Expand Up @@ -108,7 +108,7 @@ public final class NBKPrimeSieve: CustomStringConvertible {
///
/// - Parameter capacity: The prime buffer's minimum capacity.
///
/// - Requires: Each element in `wheel` must exist in `culls`.
/// - Requires: The order of `wheel` must not exceed the order of `culls`.
///
/// - Note: A page contains `1` odd number per bit in `cache`.
///
Expand Down Expand Up @@ -532,7 +532,7 @@ extension NBKPrimeSieve {
// MARK: Initializers
//=--------------------------------------------------------------------=

@inlinable init(primes: [UInt8].SubSequence) {
@inlinable init(primes: ArraySlice<UInt8>) {
self.init(primes: primes.map(UInt.init(truncatingIfNeeded:)))
}

Expand Down Expand Up @@ -670,7 +670,7 @@ extension NBKPrimeSieve {
// MARK: Initializers
//=--------------------------------------------------------------------=

@inlinable init(primes: [UInt8].SubSequence) {
@inlinable init(primes: ArraySlice<UInt8>) {
self.init(primes: primes.map(UInt.init(truncatingIfNeeded:)))
}

Expand Down

0 comments on commit 8336851

Please sign in to comment.