Skip to content

Commit faa4da3

Browse files
committed
docs: fix include paths in examples
--- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: na - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: passed - task: lint_c_examples status: passed - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 7ef177c commit faa4da3

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/node_modules/@stdlib/random/base/minstd/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
#include "stdlib/random/base/minstd.h"
20-
#include "stdlib/random/base.h"
20+
#include "stdlib/random/base/shared.h"
2121
#include <stdlib.h>
2222
#include <stdio.h>
2323
#include <inttypes.h>

lib/node_modules/@stdlib/random/base/minstd/src/main.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,11 @@ static inline void minstd_free( struct BasePRNGObject *obj ) {
133133
* @return pointer to a dynamically allocated PRNG or, if unable to allocate memory, a null pointer
134134
*
135135
* @example
136+
* #include "stdlib/random/base/minstd.h"
137+
* #include "stdlib/random/base/shared.h"
136138
* #include <stdlib.h>
137139
* #include <stdio.h>
138140
* #include <stdint.h>
139-
* #include "stdlib/random/base.h"
140-
* #include "stdlib/random/base/minstd.h"
141141
*
142142
* // Create a PRNG:
143143
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );
@@ -203,11 +203,11 @@ struct BasePRNGObject * stdlib_base_random_minstd_allocate( const int32_t seed )
203203
* @param obj PRNG object
204204
*
205205
* @example
206+
* #include "stdlib/random/base/minstd.h"
207+
* #include "stdlib/random/base/shared.h"
206208
* #include <stdlib.h>
207209
* #include <stdio.h>
208210
* #include <stdint.h>
209-
* #include "stdlib/random/base.h"
210-
* #include "stdlib/random/base/minstd.h"
211211
*
212212
* // Create a PRNG:
213213
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );
@@ -255,11 +255,11 @@ void stdlib_base_random_minstd_free( struct BasePRNGObject *obj ) {
255255
* @return status code
256256
*
257257
* @example
258+
* #include "stdlib/random/base/minstd.h"
259+
* #include "stdlib/random/base/shared.h"
258260
* #include <stdlib.h>
259261
* #include <stdio.h>
260262
* #include <stdint.h>
261-
* #include "stdlib/random/base.h"
262-
* #include "stdlib/random/base/minstd.h"
263263
*
264264
* // Create a PRNG:
265265
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );
@@ -304,11 +304,11 @@ int8_t stdlib_base_random_minstd_seed( const struct BasePRNGObject *obj, int32_t
304304
* @return pointer to a copy of the PRNG's internal state or, if unable to allocate memory, a null pointer
305305
*
306306
* @example
307+
* #include "stdlib/random/base/minstd.h"
308+
* #include "stdlib/random/base/shared.h"
307309
* #include <stdlib.h>
308310
* #include <stdio.h>
309311
* #include <stdint.h>
310-
* #include "stdlib/random/base.h"
311-
* #include "stdlib/random/base/minstd.h"
312312
*
313313
* // Create a PRNG:
314314
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );
@@ -353,11 +353,11 @@ void * stdlib_base_random_minstd_state( const struct BasePRNGObject *obj ) {
353353
* @return status code
354354
*
355355
* @example
356+
* #include "stdlib/random/base/minstd.h"
357+
* #include "stdlib/random/base/shared.h"
356358
* #include <stdlib.h>
357359
* #include <stdio.h>
358360
* #include <stdint.h>
359-
* #include "stdlib/random/base.h"
360-
* #include "stdlib/random/base/minstd.h"
361361
*
362362
* // Create a PRNG:
363363
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );

0 commit comments

Comments
 (0)