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 3ae304c

Browse files
authored
Updated function's name
1 parent b1ae147 commit 3ae304c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎Maths/PythagoreanTheorem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const calcHypothenuse = (side1, side2) => {
2020
* @see [calcOtherSides](https://en.wikipedia.org/wiki/Pythagorean_theorem)
2121
* @example calcOtherSides(4, 3) = 2
2222
*/
23-
const calcOtherSides = (hypothenuse, side1) => {
23+
const calcOtherSide = (hypothenuse, side1) => {
2424
if (side1 >= hypothenuse) {
2525
return 'Length of side1 must be smaller than hypothenuse'
2626
}

0 commit comments

Comments
(0)

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