From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Petri Latvala <petri.latvala@intel.com>
Subject: [igt-dev] [PATCH i-g-t] lib/igt_collection: documentation fix
Date: Fri, 24 Jan 2020 08:12:46 +0100 [thread overview]
Message-ID: <20200124071246.18147-1-zbigniew.kempczynski@intel.com> (raw)
Fixing iterator documentation which wasn't properly updated during
working on a patch.
Reported-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Petri Latvala <petri.latvala@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
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2020-01-24 7:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-24 7:12 Zbigniew Kempczyński [this message]
2020-01-24 8:06 ` [igt-dev] ✓ Fi.CI.BAT: success for lib/igt_collection: documentation fix Patchwork
2020-01-26 4:42 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2020-01-27 9:55 ` [igt-dev] [PATCH i-g-t] " Petri Latvala
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200124071246.18147-1-zbigniew.kempczynski@intel.com \
--to=zbigniew.kempczynski@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=petri.latvala@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox