[igt-dev] [PATCH i-g-t] lib/igt_collection: documentation fix

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Fri Jan 24 07:12:46 UTC 2020


Fixing iterator documentation which wasn't properly updated during
working on a patch.

Reported-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Petri Latvala <petri.latvala at intel.com>
---
 lib/igt_collection.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/igt_collection.c b/lib/igt_collection.c
index 35e09c89..69d9f86f 100644
--- a/lib/igt_collection.c
+++ b/lib/igt_collection.c
@@ -101,10 +101,10 @@
  *
  * int i;
  * set = igt_collection_create(4);
- * iter = igt_collection_iter_init(set, 2, SUBSET);
- * //iter = igt_collection_iter_init(set, 2, COMBINATION);
- * //iter = igt_collection_iter_init(set, 2, VARIATION_R);
- * //iter = igt_collection_iter_init(set, 2, VARIATION_NR);
+ * iter = igt_collection_iter_create(set, 2, SUBSET);
+ * //iter = igt_collection_iter_create(set, 2, COMBINATION);
+ * //iter = igt_collection_iter_create(set, 2, VARIATION_R);
+ * //iter = igt_collection_iter_create(set, 2, VARIATION_NR);
  *
  * for (i = 0; i < set->size; i++) {
  *      igt_collection_set_value(set, i, i + 1);
-- 
2.23.0



More information about the igt-dev mailing list