Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Jul 20, 2023
1 parent 9c4f33a commit e0d818c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def engine_factory():
yield Database(conn)

registry = svc_reg.Registry()
registry.register_factory(Database, create_database)
registry.register_factory(Database, engine_factory)
```

The generator-based setup and cleanup may remind you of [Pytest fixtures](https://docs.pytest.org/en/stable/explanation/fixtures.html).
Expand Down

0 comments on commit e0d818c

Please sign in to comment.