mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
math: small typo in math.fractions (#8298)
This commit is contained in:

committed by
GitHub

parent
522eac200f
commit
69e6ba7a64
@ -129,7 +129,7 @@ pub fn (f1 Fraction) *(f2 Fraction) Fraction {
|
||||
// Fraction divide using operator overloading
|
||||
pub fn (f1 Fraction) /(f2 Fraction) Fraction {
|
||||
if f2.n == 0 {
|
||||
panic('Cannot divive by zero')
|
||||
panic('Cannot divide by zero')
|
||||
}
|
||||
// If the second fraction is negative, it will
|
||||
// mess up the sign. We need positive denominator
|
||||
|
Reference in New Issue
Block a user