math.fractions: make the Fraction struct public (#19507)

This commit is contained in:
Redstoyn33 2023-10-04 18:16:08 +03:00 committed by GitHub
parent a1e3040461
commit 4b03d08457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,7 @@ import math.bits
// not be reduced automatically.
// 2. d cannot be set to zero. The factory function will panic.
// 3. If provided d is negative, it will be made positive. n will change as well.
struct Fraction {
pub struct Fraction {
pub:
n i64
d i64