summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2022-12-31 03:11:32 +0100
committerThomas Voss <mail@thomasvoss.com> 2022-12-31 03:11:32 +0100
commit06e98187cc5cb407b44debbebb804cb214221f1a (patch)
treecfb7eee40601802bb9f6c4cf7f9a2d300105d386 /examples
parent52118baecb0b6e580814db69e52a02c233c633df (diff)
Fix example
Diffstat (limited to 'examples')
-rw-r--r--examples/gevector.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/gevector.c b/examples/gevector.c
index 93a1960..2af91e2 100644
--- a/examples/gevector.c
+++ b/examples/gevector.c
@@ -17,7 +17,7 @@ main(void)
ivec_insert(vec, 1337, 2);
for (size_t i = 0; i < vec->len; i++)
- printf("%d\n", ivec_get(vec, i));
+ printf("%d\n", vec->data[i]);
ivec_free(vec);
free(vec);