docs: Use correct call to notmuch_query_search_threads in usage example

Amended by db: simplify (subjectively) the example.
This commit is contained in:
rhn 2018-12-17 17:57:48 +00:00 committed by David Bremner
parent b350c688e1
commit fac155815c

View file

@ -889,10 +889,12 @@ notmuch_query_add_tag_exclude (notmuch_query_t *query, const char *tag);
* notmuch_query_t *query; * notmuch_query_t *query;
* notmuch_threads_t *threads; * notmuch_threads_t *threads;
* notmuch_thread_t *thread; * notmuch_thread_t *thread;
* notmuch_status_t stat;
* *
* query = notmuch_query_create (database, query_string); * 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_valid (threads);
* notmuch_threads_move_to_next (threads)) * notmuch_threads_move_to_next (threads))
* { * {