Skip to content

Commit 63f525f

Browse files
committed
Restrict access to Rational initialiser.
1 parent e4066a5 commit 63f525f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/NumberKit/Rational.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public struct Rational<T: IntegerNumber>: RationalNumber, CustomStringConvertibl
100100

101101
/// Sets numerator and denominator without normalization. This function must not be called
102102
/// outside of the NumberKit framework.
103-
fileprivate init(numerator: T, denominator: T) {
103+
private init(numerator: T, denominator: T) {
104104
self.numerator = numerator
105105
self.denominator = denominator
106106
}

0 commit comments

Comments
 (0)