aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorrhn <gihu.rhn@porcupinefactory.org>2018-12-17 17:57:48 +0000
committerDavid Bremner <david@tethera.net>2019-01-25 20:51:00 -0400
commitfac155815cfaa3b151a196643c90f5a1820348e3 (patch)
tree9a7506257678699723f7b0f98909fafaf67d5822 /lib
parentb350c688e1f36bdfc0343bae714f31b727a92957 (diff)
docs: Use correct call to notmuch_query_search_threads in usage example
Amended by db: simplify (subjectively) the example.
Diffstat (limited to 'lib')
-rw-r--r--lib/notmuch.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/notmuch.h b/lib/notmuch.h
index aa032e09..24708f3c 100644
--- a/lib/notmuch.h
+++ b/lib/notmuch.h
@@ -889,10 +889,12 @@ notmuch_query_add_tag_exclude (notmuch_query_t *query, const char *tag);
* notmuch_query_t *query;
* notmuch_threads_t *threads;
* notmuch_thread_t *thread;
+ * notmuch_status_t stat;
*
* query = notmuch_query_create (database, query_string);
*
- * for (threads = notmuch_query_search_threads (query);
+ * for (stat = notmuch_query_search_threads (query, &threads);
+ * stat == NOTMUCH_STATUS_SUCCESS &&
* notmuch_threads_valid (threads);
* notmuch_threads_move_to_next (threads))
* {