From 5a1f3cd394f9097bd5e739bf7cba639931bd0ee3 Mon Sep 17 00:00:00 2001 From: Subhomoy Haldar Date: Thu, 28 Jan 2021 13:32:41 +0530 Subject: [PATCH] math.fractions: fix minor typo (#8386) --- vlib/math/fractions/fraction.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/math/fractions/fraction.v b/vlib/math/fractions/fraction.v index 9d6d290c8f..363a464b32 100644 --- a/vlib/math/fractions/fraction.v +++ b/vlib/math/fractions/fraction.v @@ -56,7 +56,7 @@ pub fn (f Fraction) str() string { // NOTE: requires reduced inputs fn general_addition_result(f1 Fraction, f2 Fraction, addition bool) Fraction { d1 := math.gcd(f1.d, f2.d) - // d1 happends to be 1 around 600/(pi)^2 or 61 percent of the time (Theorem 4.5.2D) + // d1 happens to be 1 around 600/(pi)^2 or 61 percent of the time (Theorem 4.5.2D) if d1 == 1 { num1n2d := f1.n * f2.d num1d2n := f1.d * f2.n