math: small typo in math.fractions (#8298)

pull/8265/head
fnetX (aka fralix) 2021-01-24 09:37:00 +01:00 committed by GitHub
parent 522eac200f
commit 69e6ba7a64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ pub fn (f1 Fraction) *(f2 Fraction) Fraction {
// Fraction divide using operator overloading // Fraction divide using operator overloading
pub fn (f1 Fraction) /(f2 Fraction) Fraction { pub fn (f1 Fraction) /(f2 Fraction) Fraction {
if f2.n == 0 { if f2.n == 0 {
panic('Cannot divive by zero') panic('Cannot divide by zero')
} }
// If the second fraction is negative, it will // If the second fraction is negative, it will
// mess up the sign. We need positive denominator // mess up the sign. We need positive denominator