diff options
author | Andrea Canciani <ranma42@gmail.com> | 2010-11-28 09:31:02 +0100 |
---|---|---|
committer | Andrea Canciani <ranma42@gmail.com> | 2010-11-28 09:33:14 +0100 |
commit | cfafa3924b983a38056893b5fd8e836574deee17 (patch) | |
tree | 08aee8f3ee51fd9c4aaa06b93d37d643720d06f3 /src/cairo-array.c | |
parent | f238da5291cdb347daa0be64ecc393fc519c4ead (diff) | |
download | cairo-cfafa3924b983a38056893b5fd8e836574deee17.tar.gz |
array: Fix comment
The comment was talking about using 0 as index, but was using
"num_elements" instead.
Diffstat (limited to 'src/cairo-array.c')
-rw-r--r-- | src/cairo-array.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-array.c b/src/cairo-array.c index 673ae5e16..52b283ff8 100644 --- a/src/cairo-array.c +++ b/src/cairo-array.c @@ -167,7 +167,7 @@ _cairo_array_index (cairo_array_t *array, unsigned int index) /* We allow an index of 0 for the no-elements case. * This makes for cleaner calling code which will often look like: * - * elements = _cairo_array_index (array, num_elements); + * elements = _cairo_array_index (array, 0); * for (i=0; i < num_elements; i++) { * ... use elements[i] here ... * } @@ -211,7 +211,7 @@ _cairo_array_index_const (const cairo_array_t *array, unsigned int index) /* We allow an index of 0 for the no-elements case. * This makes for cleaner calling code which will often look like: * - * elements = _cairo_array_index_const (array, num_elements); + * elements = _cairo_array_index_const (array, 0); * for (i=0; i < num_elements; i++) { * ... read elements[i] here ... * } |