Skip to content

Commit 6941d63

Browse files
committed
Auto-generated commit
1 parent 3e37816 commit 6941d63

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ A total of 1 person contributed to this release. Thank you to this contributor:
3232

3333
<details>
3434

35+
- [`6715177`](https://github.com/stdlib-js/stdlib/commit/6715177ecec14685ff6f8bce8c35f65bc0b2f199) - **docs:** correct function description and indentation in `math/base/assert/is-even` [(#3078)](https://github.com/stdlib-js/stdlib/pull/3078) _(by Gunj Joshi)_
3536
- [`5a2ddbe`](https://github.com/stdlib-js/stdlib/commit/5a2ddbe402c98b9ea6aa989e248a3b26da375feb) - **docs:** correct the function description and indentation in `math/base/assert/is-odd` [(#3070)](https://github.com/stdlib-js/stdlib/pull/3070) _(by Gunj Joshi)_
3637

3738
</details>

base/assert/is-even/examples/c/example.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@
2222
#include <stdbool.h>
2323

2424
int main( void ) {
25-
double x;
26-
bool v;
27-
int i;
28-
29-
for ( i = 0; i < 100; i++ ) {
30-
x = ( ( (double)rand() / (double)RAND_MAX ) * 100.0 );
31-
v = stdlib_base_is_even( x );
32-
printf( "x = %lf, is_even(x) = %s\n", x, ( v ) ? "even" : "not even" );
33-
}
25+
double x;
26+
bool v;
27+
int i;
28+
29+
for ( i = 0; i < 100; i++ ) {
30+
x = ( ( (double)rand() / (double)RAND_MAX ) * 100.0 );
31+
v = stdlib_base_is_even( x );
32+
printf( "x = %lf, is_even(x) = %s\n", x, ( v ) ? "even" : "not even" );
33+
}
3434
}

base/assert/is-even/src/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include "stdlib/math/base/assert/is_integer.h"
2121

2222
/**
23-
* Test if a finite numeric value is an even number.
23+
* Tests if a finite numeric value is an even number.
2424
*
2525
* @param x input value
2626
* @return output value
@@ -32,5 +32,5 @@
3232
* // returns false
3333
*/
3434
bool stdlib_base_is_even( const double x ) {
35-
return stdlib_base_is_integer( x/2.0 );
35+
return stdlib_base_is_integer( x / 2.0 );
3636
}

0 commit comments

Comments
 (0)