mirror of
https://github.com/vlang/v.git
synced 2025-08-04 02:07:28 -04:00
math.fractions: make the Fraction struct public (#19507)
This commit is contained in:
parent
a1e3040461
commit
4b03d08457
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user