diff options
| author | Tyge Løvset <[email protected]> | 2021-10-30 19:29:15 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-10-30 19:29:15 +0200 |
| commit | 89ee23a74687311c5234f832d782b5ad56e2de7f (patch) | |
| tree | d10ad622bd29041c2ca05e24107a9136a21ab06f /docs/clist_api.md | |
| parent | 0a290000211562ffc5b39a7842a7f7fedb48baea (diff) | |
| download | STC-modified-89ee23a74687311c5234f832d782b5ad56e2de7f.tar.gz STC-modified-89ee23a74687311c5234f832d782b5ad56e2de7f.zip | |
Fixed docs alignments.
Diffstat (limited to 'docs/clist_api.md')
| -rw-r--r-- | docs/clist_api.md | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/docs/clist_api.md b/docs/clist_api.md index 6bb241f9..a00b9551 100644 --- a/docs/clist_api.md +++ b/docs/clist_api.md @@ -146,15 +146,15 @@ int main () { clist_i L = clist_i_init(); c_apply(clist_i, push_back, &L, {10, 20, 30, 40, 50}); - // 10 20 30 40 50 - clist_i_iter it = clist_i_begin(&L); // ^ + // 10 20 30 40 50 + clist_i_iter it = clist_i_begin(&L); // ^ clist_i_next(&it); - it = clist_i_erase_at(&L, it); // 10 30 40 50 - // ^ - clist_i_iter end = clist_i_end(&L); // + it = clist_i_erase_at(&L, it); // 10 30 40 50 + // ^ + clist_i_iter end = clist_i_end(&L); // clist_i_next(&it); - it = clist_i_erase_range(&L, it, end); // 10 30 - // ^ + it = clist_i_erase_range(&L, it, end); // 10 30 + // ^ printf("mylist contains:"); c_foreach (x, clist_i, L) printf(" %d", *x.ref); puts(""); |
