Skip to content

Commit 94b2d30

Browse files
committed
Update Python docstring
1 parent 7c62b0c commit 94b2d30

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libzim/libzim.pyx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1128,9 +1128,9 @@ Usage:
11281128
11291129
archive = libzim.reader.Archive(fpath)
11301130
searcher = Searcher(archive)
1131-
query = Query().setQuery("foo")
1131+
query = Query().set_query("foo")
11321132
search = searcher.search(query)
1133-
for path in search.getResult(10, 10) # get result from 10 to 20 (10 results)
1133+
for path in search.getResults(10, 10) # get result from 10 to 20 (10 results)
11341134
print(path, archive.get_entry_by_path(path).title)"""
11351135
search_public_objects = [
11361136
Searcher,
@@ -1228,7 +1228,7 @@ Usage:
12281228
archive = Archive(fpath)
12291229
suggestion_searcher = SuggestionSearcher(archive)
12301230
suggestions = suggestion_searcher.suggest("foo")
1231-
for path in suggestion.getResult(10, 10) # get result from 10 to 20 (10 results)
1231+
for path in suggestion.getResults(10, 10) # get result from 10 to 20 (10 results)
12321232
print(path, archive.get_entry_by_path(path).title)"""
12331233
suggestion_public_objects = [
12341234
SuggestionSearcher

0 commit comments

Comments
 (0)