Skip to content

Commit

Permalink
fixed sample usage in README
Browse files Browse the repository at this point in the history
  • Loading branch information
rgaudin committed Feb 13, 2024
1 parent d11afa9 commit 3899ffd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ with Creator("test.zim").config_indexing(True, "eng") as creator:

```py
lock = threading.Lock()
creator = Creator("test.zim")
with Creator("test.zim") as creator:

# Thread #1
with lock:
creator.add_item(item1)
# Thread #1
with lock:
creator.add_item(item1)

# Thread #2
with lock:
creator.add_item(item2)
# Thread #2
with lock:
creator.add_item(item2)
```

## Building
Expand Down

0 comments on commit 3899ffd

Please sign in to comment.