diff options
| author | Tyge Løvset <[email protected]> | 2022-09-23 07:15:41 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-09-23 07:15:41 +0200 |
| commit | 34bec4fdf406caff8492d53f0afc80df5d75bba4 (patch) | |
| tree | 94252139eb34cb37f561ec5a6b9513629b2a81a5 /docs/cvec_api.md | |
| parent | d70bcf4d875c14da30a39acfc37d00391cc1e7a9 (diff) | |
| download | STC-modified-34bec4fdf406caff8492d53f0afc80df5d75bba4.tar.gz STC-modified-34bec4fdf406caff8492d53f0afc80df5d75bba4.zip | |
Deprecated c_forarray, c_forarray_p macros - both replaced by c_forlist, and is consistent with other c_for* macros.
Diffstat (limited to 'docs/cvec_api.md')
| -rw-r--r-- | docs/cvec_api.md | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/cvec_api.md b/docs/cvec_api.md index 588299fe..dca273aa 100644 --- a/docs/cvec_api.md +++ b/docs/cvec_api.md @@ -124,8 +124,8 @@ int main() cvec_int_push(&vec, 13); // Append a set of numbers - c_forarray (int, v, {7, 5, 16, 8}) - cvec_int_push(&vec, *v); + c_forlist (i, int, {7, 5, 16, 8}) + cvec_int_push(&vec, *i.ref); printf("initial:"); c_foreach (k, cvec_int, vec) { |
