Skip to content

Commit

Permalink
Fix readme example
Browse files Browse the repository at this point in the history
  • Loading branch information
maldoinc committed Oct 27, 2024
1 parent 00f97e0 commit 41f297f
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 @@ -79,7 +79,7 @@ Use factories (sync and async) if service requires special initialization or cle
```python
@service
async def make_db(dsn: Annotated[str, Inject(param="db_dsn")]) -> AsyncIterator[Connection]:
async with DB(dsn) as conn:
async with Connection(dsn) as conn:
yield conn
```

Expand Down

0 comments on commit 41f297f

Please sign in to comment.