Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit af5d82b

Browse files
authored
Update PythagoreanTheorem.js
1 parent 5cd94d8 commit af5d82b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎Maths/PythagoreanTheorem.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ const calcHypothenuse = (side1, side2) => {
1212
return hypothenuse
1313
}
1414
/**
15-
* @function calcOtherSides
15+
* @function calcOtherSide
1616
* @description Calculate the length of other sides of triangle
1717
* @param {Integer} hypothenuse - Integer
1818
* @param {Integer} side1 - Integer
1919
* @return {Integer} - side2
20-
* @see [calcOtherSides](https://en.wikipedia.org/wiki/Pythagorean_theorem)
21-
* @example calcOtherSides(4, 3) = 2
20+
* @see [calcOtherSide](https://en.wikipedia.org/wiki/Pythagorean_theorem)
21+
* @example calcOtherSide(4, 3) = 2
2222
*/
2323
const calcOtherSide = (hypothenuse, side1) => {
2424
if (side1 >= hypothenuse) {
@@ -30,5 +30,5 @@ const calcOtherSide = (hypothenuse, side1) => {
3030

3131
export {
3232
calcHypothenuse,
33-
calcOtherSides,
33+
calcOtherSide,
3434
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /