mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
docs: Use correct call to notmuch_query_search_threads in usage example
Amended by db: simplify (subjectively) the example.
This commit is contained in:
parent
b350c688e1
commit
fac155815c
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
* {
|
||||
|
|
Loading…
Reference in a new issue