Skip to content

Commit fdda80f

Browse files
authored
Fix grammar.
1 parent ce7e7e2 commit fdda80f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Maths/EulersTotientFunction.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
const gcdOfTwoNumbers = (x, y) => {
1212
// x is smaller than y
1313
// let gcd of x and y is gcdXY
14-
// so it devides x and y completely
15-
// 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))
16-
// and gcd(x,y) is equals to gcd(y%x , x)
14+
// so it divides x and y completely
15+
// 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))
16+
// and gcd(x,y) is equal to gcd(y%x , x)
1717
return x === 0 ? y : gcdOfTwoNumbers(y % x, x)
1818
}
1919

0 commit comments

Comments
 (0)