Skip to content

Commit c5b3e0a

Browse files
authored
docs: replace integers with doubles in math/base/special/fibonacci
PR-URL: #7937 Ref: #7923 Reviewed-by: Athan Reines <[email protected]>
1 parent 0283804 commit c5b3e0a

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/math/base/special/fibonacci

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/math/base/special/fibonacci/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,11 @@ for ( i = 0; i < 79; i++ ) {
176176
Computes the nth [Fibonacci number][fibonacci-number].
177177

178178
```c
179-
double out = stdlib_base_fibonacci( 0 );
180-
// returns 0
179+
double out = stdlib_base_fibonacci( 0.0 );
180+
// returns 0.0
181181

182-
out = stdlib_base_fibonacci( 1 );
183-
// returns 1
182+
out = stdlib_base_fibonacci( 1.0 );
183+
// returns 1.0
184184
```
185185

186186
The function accepts the following arguments:

0 commit comments

Comments
 (0)