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/cset_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/cset_api.md')
| -rw-r--r-- | docs/cset_api.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/cset_api.md b/docs/cset_api.md index 2d3ab6e7..b2e7d0c8 100644 --- a/docs/cset_api.md +++ b/docs/cset_api.md @@ -86,11 +86,11 @@ int main () c_auto (cset_str, first, second) c_auto (cset_str, third, fourth) { - c_forarray_p (const char*, v, {"red", "green", "blue"}) - cset_str_emplace(&second, *v); + c_forlist (i, const char*, {"red", "green", "blue"}) + cset_str_emplace(&second, *i.ref); - c_forarray_p (const char*, v, {"orange", "pink", "yellow"}) - cset_str_emplace(&third, *v); + c_forlist (i, const char*, {"orange", "pink", "yellow"}) + cset_str_emplace(&third, *i.ref); cset_str_emplace(&fourth, "potatoes"); cset_str_emplace(&fourth, "milk"); |
