Skip to content

Commit df8436b

Browse files
authored
chore: apply suggestions from code review
Signed-off-by: Philipp Burckhardt <[email protected]>
1 parent 3c25701 commit df8436b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/node_modules/@stdlib/stats/base/dists/erlang/variance/benchmark/c/benchmark.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,9 @@ static double random_uniform( const double min, const double max ) {
9595
* @return elapsed time in seconds
9696
*/
9797
static double benchmark( void ) {
98-
double elapsed;
99-
int32_t k[ 100 ];
10098
double lambda[ 100 ];
99+
int32_t k[ 100 ];
100+
double elapsed;
101101
double y;
102102
double t;
103103
int i;

lib/node_modules/@stdlib/stats/base/dists/erlang/variance/src/addon.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,4 @@
1919
#include "stdlib/stats/base/dists/erlang/variance.h"
2020
#include "stdlib/math/base/napi/binary.h"
2121

22-
// cppcheck-suppress shadowFunction
2322
STDLIB_MATH_BASE_NAPI_MODULE_ID_D( stdlib_base_dists_erlang_variance )

lib/node_modules/@stdlib/stats/base/dists/erlang/variance/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <stdint.h>
2222

2323
/**
24-
* Returns the variance for a erlang distribution with shape parameter `k` and rate parameter `lambda`.
24+
* Returns the variance for an Erlang distribution with shape parameter `k` and rate parameter `lambda`.
2525
*
2626
* @param k shape parameter
2727
* @param lambda rate parameter

0 commit comments

Comments
 (0)