From fdda80fc6b3903ba6b08f32c9326d00309182c12 Mon Sep 17 00:00:00 2001 From: EliteDaMyth Date: Fri, 5 Feb 2021 17:59:38 +0530 Subject: [PATCH] Fix grammar. --- Maths/EulersTotientFunction.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Maths/EulersTotientFunction.js b/Maths/EulersTotientFunction.js index 90fd27450..387a93fa2 100644 --- a/Maths/EulersTotientFunction.js +++ b/Maths/EulersTotientFunction.js @@ -11,9 +11,9 @@ const gcdOfTwoNumbers = (x, y) => { // x is smaller than y // let gcd of x and y is gcdXY - // so it devides x and y completely - // so gcdXY should also devides y%x (y = gcdXY*a and x = gcdXY*b and y%x = y - x*k so y%x = gcdXY(a - b*k)) - // and gcd(x,y) is equals to gcd(y%x , x) + // so it divides x and y completely + // so gcdXY should also divide y%x (y = gcdXY*a and x = gcdXY*b and y%x = y - x*k so y%x = gcdXY(a - b*k)) + // and gcd(x,y) is equal to gcd(y%x , x) return x === 0 ? y : gcdOfTwoNumbers(y % x, x) }