math.fractions: make the numerator and denominator public (#11018)

pull/11021/head
Yuval Greenfield 2021-08-02 08:50:11 -07:00 committed by GitHub
parent 69f31d8d5c
commit 820669b011
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -15,9 +15,9 @@ import math.bits
// 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 {
n i64
d i64
pub:
n i64
d i64
is_reduced bool
}