Skip to content

Commit 95ead35

Browse files
huizixintrekhleb
authored andcommitted
fix: correct JSDoc position range to match code validation (1-70)
The JSDoc comment states the valid position range is '1 to 75', but the code validates against topMaxValidPosition = 70. This PR fixes the documentation to match the implementation.
1 parent 3b53377 commit 95ead35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/algorithms/math/fibonacci/fibonacciNthClosedForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Calculate fibonacci number at specific position using closed form function (Binet's formula).
33
* @see: https://en.wikipedia.org/wiki/Fibonacci_number#Closed-form_expression
44
*
5-
* @param {number} position - Position number of fibonacci sequence (must be number from 1 to 75).
5+
* @param {number} position - Position number of fibonacci sequence (must be number from 1 to 70).
66
* @return {number}
77
*/
88
export default function fibonacciClosedForm(position) {

0 commit comments

Comments
 (0)