Skip to content

Commit 4229281

Browse files
committed
Rename function
1 parent bcd2a6e commit 4229281

File tree

2 files changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/ndarray/ctor

2 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/ndarray/ctor/include/stdlib/ndarray/ctor.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ int64_t stdlib_ndarray_flags( const struct ndarray *arr );
214214
int8_t stdlib_ndarray_has_flags( const struct ndarray *arr, const int64_t flags );
215215

216216
/**
217-
* Sets specified ndarray flags.
217+
* Enables specified ndarray flags.
218218
*/
219-
int8_t stdlib_ndarray_set_flags( const struct ndarray *arr, const int64_t flags );
219+
int8_t stdlib_ndarray_enable_flags( const struct ndarray *arr, const int64_t flags );
220220

221221
#endif // !STDLIB_NDARRAY_H

lib/node_modules/@stdlib/ndarray/ctor/src/main.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -215,17 +215,17 @@ int8_t stdlib_ndarray_has_flags( const struct ndarray *arr, const int64_t flags
215215
}
216216

217217
/**
218-
* Sets specified ndarray flags.
218+
* Enables specified ndarray flags.
219219
*
220220
* ## Notes
221221
*
222222
* - The function does not perform any sanity checks and **assumes** the user knows what s/he is doing.
223223
*
224224
* @param arr input ndarray
225-
* @param flags flags to set
225+
* @param flags flags to enable
226226
* @return status code
227227
*/
228-
int8_t stdlib_ndarray_set_flags( const struct ndarray *arr, const int64_t flags ) {
228+
int8_t stdlib_ndarray_enable_flags( const struct ndarray *arr, const int64_t flags ) {
229229
arr->flags |= flags;
230230
return 0;
231231
}

0 commit comments

Comments
 (0)