Skip to content

Commit d4328e7

Browse files
authored
docs: move variable declarations closer to the loop
Signed-off-by: Gunj Joshi <[email protected]>
1 parent 720b9f4 commit d4328e7

File tree

1 file changed

+3
-3
lines changed
  • lib/node_modules/@stdlib/constants/float64/max-safe-nth-tribonacci/examples

1 file changed

+3
-3
lines changed

lib/node_modules/@stdlib/constants/float64/max-safe-nth-tribonacci/examples/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
2020

2121
var FLOAT64_MAX_SAFE_NTH_TRIBONACCI = require( './../lib' ); // eslint-disable-line id-length
2222

23-
var v;
24-
var i;
25-
2623
function tribonacci( n ) {
2724
var a;
2825
var b;
@@ -51,6 +48,9 @@ function tribonacci( n ) {
5148
return c;
5249
}
5350

51+
var v;
52+
var i;
53+
5454
for ( i = 0; i < 100; i++ ) {
5555
v = tribonacci( i );
5656
if ( i > FLOAT64_MAX_SAFE_NTH_TRIBONACCI ) {

0 commit comments

Comments
 (0)